forked from retyui/react-native-confirmation-code-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.js
83 lines (76 loc) · 1.6 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import {StyleSheet, Platform} from 'react-native';
export const CELL_SIZE = 70;
export const CELL_BORDER_RADIUS = 8;
export const DEFAULT_CELL_BG_COLOR = '#fff';
export const NOT_EMPTY_CELL_BG_COLOR = '#3557b7';
export const ACTIVE_CELL_BG_COLOR = '#f7fafe';
const styles = StyleSheet.create({
codeFieldRoot: {
height: CELL_SIZE,
marginTop: 30,
paddingHorizontal: 20,
justifyContent: 'center',
},
cell: {
marginHorizontal: 8,
height: CELL_SIZE,
width: CELL_SIZE,
lineHeight: CELL_SIZE - 5,
...Platform.select({web: {lineHeight: 65}}),
fontSize: 30,
textAlign: 'center',
borderRadius: CELL_BORDER_RADIUS,
color: '#3759b8',
backgroundColor: '#fff',
// IOS
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 1,
},
shadowOpacity: 0.22,
shadowRadius: 2.22,
// Android
elevation: 3,
},
// =======================
root: {
minHeight: 800,
padding: 20,
},
title: {
paddingTop: 50,
color: '#000',
fontSize: 25,
fontWeight: '700',
textAlign: 'center',
paddingBottom: 40,
},
icon: {
width: 217 / 2.4,
height: 158 / 2.4,
marginLeft: 'auto',
marginRight: 'auto',
},
subTitle: {
paddingTop: 30,
color: '#000',
textAlign: 'center',
},
nextButton: {
marginTop: 30,
borderRadius: 60,
height: 60,
backgroundColor: '#3557b7',
justifyContent: 'center',
minWidth: 300,
marginBottom: 100,
},
nextButtonText: {
textAlign: 'center',
fontSize: 20,
color: '#fff',
fontWeight: '700',
},
});
export default styles;