Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit f8391f2

Browse files
committed
Group common input styles
1 parent efbf1ad commit f8391f2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/component/field-mobile.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ const namedSelectStyles = StyleSheet.create({
3030
},
3131
});
3232

33+
const baseInputStyles = {
34+
fontFamily: 'OpenSans Regular',
35+
fontSize: font.sizeM,
36+
lineHeight: font.lineHeightM + 3,
37+
height: font.lineHeightM + 2 * 12,
38+
color: color.blackText,
39+
padding: 0,
40+
};
41+
3342
const pickerStyles = StyleSheet.create({
3443
inputIOS: {
35-
fontFamily: 'OpenSans Regular',
36-
fontSize: font.sizeM,
37-
lineHeight: font.lineHeightM + 3,
38-
height: font.lineHeightM + 2 * 12,
39-
color: color.blackText,
44+
...baseInputStyles,
4045
opacity: 0.75,
4146
},
4247
inputAndroid: {
43-
fontFamily: 'OpenSans Regular',
44-
fontSize: font.sizeM,
45-
lineHeight: font.lineHeightM + 3,
46-
height: font.lineHeightM + 2 * 12,
47-
color: color.blackText,
48+
...baseInputStyles,
4849
opacity: 0.5,
49-
padding: 0,
5050
},
5151
});
5252

0 commit comments

Comments
 (0)