Skip to content

Commit

Permalink
fix: vertical alignment issues and warnings
Browse files Browse the repository at this point in the history
Cloeses: #37
  • Loading branch information
Marco Cesarato committed Feb 18, 2021
1 parent 12cf555 commit edc7178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/InputSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,6 @@ class InputSpinner extends Component {
fontSize: this.props.buttonFontSize,
fontFamily: this.props.buttonFontFamily,
lineHeight: this.props.height,
verticalAlign: "middle",
},
];
}
Expand Down
5 changes: 5 additions & 0 deletions src/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,16 @@ export const Style = StyleSheet.create({
buttonText: {
color: "white",
textAlign: "center",
justifyContent: "center",
alignItems: "center",
textAlignVertical: "center",
},
numberText: {
flex: 1,
textAlign: "center",
justifyContent: "center",
alignItems: "center",
textAlignVertical: "center",
borderWidth: 0,
...Platform.select({
web: {
Expand Down

0 comments on commit edc7178

Please sign in to comment.