From edc7178ecf523f3465821b1bb5bcbae0da6ad544 Mon Sep 17 00:00:00 2001 From: Marco Cesarato Date: Thu, 18 Feb 2021 11:24:41 +0100 Subject: [PATCH] fix: vertical alignment issues and warnings Cloeses: #37 --- src/InputSpinner.js | 1 - src/Style.js | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/InputSpinner.js b/src/InputSpinner.js index ecafe20..7780511 100644 --- a/src/InputSpinner.js +++ b/src/InputSpinner.js @@ -945,7 +945,6 @@ class InputSpinner extends Component { fontSize: this.props.buttonFontSize, fontFamily: this.props.buttonFontFamily, lineHeight: this.props.height, - verticalAlign: "middle", }, ]; } diff --git a/src/Style.js b/src/Style.js index caa7bff..a02e328 100644 --- a/src/Style.js +++ b/src/Style.js @@ -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: {