forked from qiuxiang/react-native-amap3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.js
42 lines (41 loc) · 805 Bytes
/
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
import { StyleSheet, Platform } from 'react-native'
export default StyleSheet.create({
map: {
flex: 1,
...Platform.select({
ios: {
marginBottom: 72,
},
}),
},
controls: {
height: 72,
flexDirection: 'row',
justifyContent: 'space-between',
elevation: 4,
paddingLeft: 20,
paddingRight: 20,
...Platform.select({
android: {
backgroundColor: '#f5f5f5',
},
ios: {
backgroundColor: '#fff',
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
borderTopColor: '#e0e0e0',
borderTopWidth: StyleSheet.hairlineWidth,
zIndex: 1,
},
}),
},
control: {
alignItems: 'center',
justifyContent: 'center',
},
switch: {
marginTop: 5,
},
})