/
OptionsScreen.js
70 lines (60 loc) · 1.49 KB
/
OptionsScreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import React, {Component} from 'react';
import {
Text,
View,
StyleSheet,
Image,
TouchableOpacity
} from 'react-native';
export default class UserLoginUI extends Component {
render() {
return(
<View style = {styles.mainContainer}>
<Text style = {styles.text}> Hello, Nadeem</Text>
<TouchableOpacity style = {styles.block}>
<Image source = {require('../image/details.png')} style = {styles.blockImage}/>
<Text style = {styles.text}> View My Bus Details</Text>
</TouchableOpacity>
<TouchableOpacity style = {styles.block}>
<Image source = {require('../image/bustracking.png')} style = {styles.blockImage}/>
<Text style = {styles.text}> View My Bus Checkpoints</Text>
</TouchableOpacity>
<TouchableOpacity style = {styles.block}>
<Image source = {require('../image/checkpoint.png')} style = {styles.blockImage}/>
<Text style = {styles.text}> Track My Bus </Text>
</TouchableOpacity>
</View>
);
}
}
const styles = StyleSheet.create({
mainContainer : {
backgroundColor: '#3498db',
flex : 1,
padding : 25,
alignItems: 'center',
justifyContent : 'center'
},
text : {
color : '#fff',
fontWeight : '700',
fontSize : 18,
textAlign : 'center',
marginTop: 25,
opacity : 0.7
},
block : {
backgroundColor: '#2980b9',
height : 50,
width : 300,
marginTop : 10,
marginBottom : 10,
paddingVertical: 10,
flex : 1,
alignItems : 'center',
borderRadius: 15
},
blockImage : {
marginTop : 25
}
});