Skip to content

Commit edc7178

Browse files
author
Marco Cesarato
committed
fix: vertical alignment issues and warnings
Cloeses: #37
1 parent 12cf555 commit edc7178

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/InputSpinner.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,6 @@ class InputSpinner extends Component {
945945
fontSize: this.props.buttonFontSize,
946946
fontFamily: this.props.buttonFontFamily,
947947
lineHeight: this.props.height,
948-
verticalAlign: "middle",
949948
},
950949
];
951950
}

src/Style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,16 @@ export const Style = StyleSheet.create({
5252
buttonText: {
5353
color: "white",
5454
textAlign: "center",
55+
justifyContent: "center",
56+
alignItems: "center",
57+
textAlignVertical: "center",
5558
},
5659
numberText: {
5760
flex: 1,
5861
textAlign: "center",
5962
justifyContent: "center",
63+
alignItems: "center",
64+
textAlignVertical: "center",
6065
borderWidth: 0,
6166
...Platform.select({
6267
web: {

0 commit comments

Comments
 (0)