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 }