forked from z-dev/react-native-checkout
-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaultStyles.js
106 lines (102 loc) · 2.08 KB
/
defaultStyles.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { StyleSheet } from 'react-native'
import { bold, grey, pressableColor, red, touchableOpacityContainer, innerTouchableOpacityContainer } from '../../common/styles'
const textInput = {
paddingLeft: 12,
paddingRight: 12,
height: 44,
backgroundColor: 'white',
flex: 1,
}
const cardImage = {
height: 20,
width: 40,
marginLeft: 10,
}
const cardFieldContainer = {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: 'white',
}
const button = {
...touchableOpacityContainer,
marginTop: 5,
marginBottom: 5,
borderBottomWidth: 1,
borderTopWidth: 1,
borderColor: grey,
}
const buttonText = {
color: pressableColor,
fontWeight: bold,
textAlign: 'center',
}
export default {
activityIndicator: {},
activityIndicatorContainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
addButton: button,
addButtonText: buttonText,
addCardContainer: {
flex: 1,
justifyContent: 'flex-start',
backgroundColor: '#F2F2F5',
},
cardExpiryImage: {
...cardImage,
},
cardNumberContainer: {
...cardFieldContainer,
},
cardNumberImage: {
...cardImage,
},
cardNumberInput: {
...textInput,
},
cvcContainer: {
...cardFieldContainer,
borderLeftWidth: StyleSheet.hairlineWidth,
borderLeftColor: grey,
flex: 1,
},
cvcImage: {
...cardImage,
},
cvcInput: {
...textInput,
},
errorTextContainer: {
paddingVertical: 10,
justifyContent: 'center',
alignItems: 'center'
},
errorText: {
fontSize: 16,
color: 'red',
textAlign: 'center',
},
innerTouchableOpacityContainer: innerTouchableOpacityContainer,
invalid: {
borderWidth: StyleSheet.hairlineWidth,
borderColor: red,
},
monthYearContainer: {
...cardFieldContainer,
borderBottomWidth: StyleSheet.hairlineWidth,
borderTopWidth: StyleSheet.hairlineWidth,
borderColor: grey,
flex: 1,
},
monthYearCvcContainer: {
flexDirection: 'row',
},
monthYearTextInput: {
...textInput,
},
scanCardButton: button,
scanCardButtonText: buttonText,
textInput: textInput,
}