From 12dfd283944092f8084ef882de413531a7915a07 Mon Sep 17 00:00:00 2001 From: Danil Valov Date: Wed, 8 Mar 2017 20:37:18 +0600 Subject: [PATCH] Solves the horizontal padding issue with text fields in Android --- lib/stylesheets/bootstrap.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/stylesheets/bootstrap.js b/lib/stylesheets/bootstrap.js index 6bf5a376..e307f031 100644 --- a/lib/stylesheets/bootstrap.js +++ b/lib/stylesheets/bootstrap.js @@ -74,7 +74,8 @@ var stylesheet = Object.freeze({ color: INPUT_COLOR, fontSize: FONT_SIZE, height: 36, - padding: (Platform.OS === 'ios') ? 7 : 0, + paddingVertical: (Platform.OS === 'ios') ? 7 : 0, + paddingHorizontal: 7, borderRadius: 4, borderColor: BORDER_COLOR, borderWidth: 1, @@ -85,7 +86,8 @@ var stylesheet = Object.freeze({ color: INPUT_COLOR, fontSize: FONT_SIZE, height: 36, - padding: (Platform.OS === 'ios') ? 7 : 0, + paddingVertical: (Platform.OS === 'ios') ? 7 : 0, + paddingHorizontal: 7, borderRadius: 4, borderColor: ERROR_COLOR, borderWidth: 1, @@ -95,7 +97,8 @@ var stylesheet = Object.freeze({ notEditable: { fontSize: FONT_SIZE, height: 36, - padding: (Platform.OS === 'ios') ? 7 : 0, + paddingVertical: (Platform.OS === 'ios') ? 7 : 0, + paddingHorizontal: 7, borderRadius: 4, borderColor: BORDER_COLOR, borderWidth: 1,