From 92a2cb274a3698c5bebebfb2b8013eb68c0d2103 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 16 Dec 2016 11:39:12 +0000 Subject: [PATCH] [fix] remove TextInput default flex value --- examples/components/TextInput/TextInputExample.js | 4 ++-- src/components/TextInput/index.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/components/TextInput/TextInputExample.js b/examples/components/TextInput/TextInputExample.js index 8727cf6a..ecc9e648 100644 --- a/examples/components/TextInput/TextInputExample.js +++ b/examples/components/TextInput/TextInputExample.js @@ -59,7 +59,7 @@ class TextEventsExample extends React.Component { render() { return ( - + { this.updateText('onKeyPress key: ' + event.nativeEvent.key); }} - style={styles.default} + style={[ styles.default, { maxWidth: 200 } ]} /> {this.state.curText}{'\n'} diff --git a/src/components/TextInput/index.js b/src/components/TextInput/index.js index f60a1277..923e4b1c 100644 --- a/src/components/TextInput/index.js +++ b/src/components/TextInput/index.js @@ -270,7 +270,6 @@ const styles = StyleSheet.create({ borderWidth: 0, boxSizing: 'border-box', color: 'inherit', - flex: 1, font: 'inherit', padding: 0 }