forked from jineshshah36/react-native-nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.js
66 lines (63 loc) · 1.29 KB
/
styles.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
/* @flow */
import {
StyleSheet,
Platform
} from 'react-native'
const IOS_NAV_BAR_HEIGHT = 44
const IOS_STATUS_BAR_HEIGHT = 20
const ANDROID_NAV_BAR_HEIGHT = 56
let ANDROID_STATUS_BAR_HEIGHT = 24
if (Platform.Version < 21) {
ANDROID_STATUS_BAR_HEIGHT = 0
}
export default StyleSheet.create({
navBarContainer: {},
statusBarIOS: {
height: IOS_STATUS_BAR_HEIGHT,
backgroundColor: '#f5f5f5',
},
statusBarAndroid: {
height: ANDROID_STATUS_BAR_HEIGHT,
backgroundColor: '#f5f5f5',
},
navBar: {
borderTopWidth: 0,
borderBottomColor: 'rgba(0, 0, 0, 0.1)',
borderBottomWidth: 1,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
navBarIOS: {
backgroundColor: '#f5f5f5',
height: IOS_NAV_BAR_HEIGHT,
paddingLeft: 8,
paddingRight: 8,
},
navBarAndroid: {
backgroundColor: '#f5f5f5',
height: ANDROID_NAV_BAR_HEIGHT,
padding: 16,
},
navBarButtonIOS: {
marginLeft: 0,
},
navBarButtonAndroid: {
marginLeft: 16,
},
navBarButtonText: {
fontSize: 17,
letterSpacing: 0.5,
color: '#939393',
},
navBarTitleText: {
fontSize: 17,
letterSpacing: 0.5,
color: '#626262',
fontWeight: '500',
textAlign: 'center',
},
navGroup: {
flexDirection: 'row',
},
})