-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathVerifyCode.style.js
More file actions
56 lines (53 loc) · 1.42 KB
/
VerifyCode.style.js
File metadata and controls
56 lines (53 loc) · 1.42 KB
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
import { StyleSheet, Platform, PixelRatio, Dimensions } from 'react-native';
const isIos = Platform.OS === 'ios';
const SW = Dimensions.get('window').width;
function getRealDP(designPx) {
return PixelRatio.roundToNearestPixel(designPx / 3);
}
// 验证码输入组件样式
export default StyleSheet.create({
// textInput样式
textInput: {
height: isIos ? 0 : getRealDP(1),
width: SW,
position: 'absolute',
bottom: 0,
left: 0
},
// 验证码输入框总容器
verifyContainer: {
width: SW,
height: getRealDP(150),
},
// 验证码带下划线输入格
textInputItem: {
width: getRealDP(120),
borderBottomWidth: getRealDP(1),
alignItems: 'center',
justifyContent: 'center',
borderBottomColor: '#888888'
},
textInputItemIn: {
width: getRealDP(120),
borderBottomWidth: getRealDP(1),
alignItems: 'center',
justifyContent: 'center',
borderBottomColor: '#282828'
},
// 输入验证码样式
verifyText: {
fontSize: getRealDP(72),
color: '#282828'
},
// 验证码文本框容器
verifyTextContainer: {
flexDirection: 'row',
justifyContent: 'space-between',
width: SW,
height: getRealDP(150),
paddingHorizontal: getRealDP(74),
position: 'absolute',
left: 0,
top: 0
}
});