From 26758e905c1207c47ca14094cf671571bde2ae43 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 6 Jul 2016 10:44:28 -0700 Subject: [PATCH] [fix] TextInput alignment of small inner 'input' Fix #139 --- src/components/TextInput/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/TextInput/index.js b/src/components/TextInput/index.js index 2a7407ba..aaf88b28 100644 --- a/src/components/TextInput/index.js +++ b/src/components/TextInput/index.js @@ -240,7 +240,7 @@ const styles = StyleSheet.create({ borderWidth: 1 }, wrapper: { - flexGrow: 1 + flex: 1 }, input: { appearance: 'none', @@ -248,8 +248,9 @@ const styles = StyleSheet.create({ borderWidth: 0, boxSizing: 'border-box', color: 'inherit', - flexGrow: 1, + flex: 1, font: 'inherit', + minHeight: '100%', // center small inputs (fix #139) padding: 0, zIndex: 1 },