-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.js
50 lines (47 loc) · 1.21 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
import { StyleSheet, Dimensions } from 'react-native';
const WINDOW_HEIGHT = Dimensions.get('window').height;
const closeButtonSize = Math.floor(WINDOW_HEIGHT * 0.1);
const captureHeight = Math.floor(WINDOW_HEIGHT * 0.2);
const cameraIconSize = Math.floor(WINDOW_HEIGHT * 0.09);
const closeIcon = Math.floor(WINDOW_HEIGHT * 0.09);
const styles = StyleSheet.create({
container: {
...StyleSheet.absoluteFillObject,
},
closeButton: {
position: 'absolute',
top: 35,
left: 15,
height: closeButtonSize,
width: closeButtonSize,
borderRadius: Math.floor(closeButtonSize / 2),
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#ff2222',
opacity: 0.8,
zIndex: 2,
},
control: {
position: 'absolute',
flexDirection: 'row',
bottom: 38,
width: '100%',
alignItems: 'center',
justifyContent: 'center',
},
capture: {
backgroundColor: '#f5f6f5',
borderRadius: captureHeight / 3,
height: captureHeight,
width: captureHeight * 1.9,
marginHorizontal: 31,
opacity: 0.7,
alignItems: 'center',
justifyContent: 'center',
},
text: {
color: '#fff',
},
});
export default styles;
export { cameraIconSize, closeIcon };