Filter unsupported TextInput props

Fix #385
This commit is contained in:
Nicolas Gallagher
2017-04-20 14:58:45 -07:00
parent 3f7a4e455f
commit 599f1fcaf5
2 changed files with 4 additions and 4 deletions

View File

@@ -143,10 +143,7 @@ const ScrollView = createReactClass({
children={this.props.children}
collapsable={false}
ref={this._setInnerViewRef}
style={[
horizontal && styles.contentContainerHorizontal,
contentContainerStyle
]}
style={[horizontal && styles.contentContainerHorizontal, contentContainerStyle]}
/>
);

View File

@@ -147,6 +147,7 @@ class TextInput extends Component {
style,
/* eslint-disable */
blurOnSubmit,
caretHidden,
clearButtonMode,
clearTextOnFocus,
dataDetectorTypes,
@@ -163,6 +164,8 @@ class TextInput extends Component {
selection,
selectionColor,
selectTextOnFocus,
textBreakStrategy,
underlineColorAndroid,
/* eslint-enable */
...otherProps
} = this.props;