Fix onLayout support in <TextInput> for Android (same than iOS fix: #8042)
Summary: See #8042: exactly the same bug and fix on Android **Test plan** ```jsx <TextInput onLayout={function(e) { console.log(e.nativeEvent); }} /> ``` Closes https://github.com/facebook/react-native/pull/9113 Differential Revision: D3647808 Pulled By: mkonicek fbshipit-source-id: 252a610e26a72a73411c3407faedea0477bee54e
This commit is contained in:
parent
e8c8a06329
commit
2ca2f87a82
|
@ -658,7 +658,6 @@ const TextInput = React.createClass({
|
|||
onEndEditing={this.props.onEndEditing}
|
||||
onSubmitEditing={this.props.onSubmitEditing}
|
||||
blurOnSubmit={this.props.blurOnSubmit}
|
||||
onLayout={this.props.onLayout}
|
||||
placeholder={this.props.placeholder}
|
||||
placeholderTextColor={this.props.placeholderTextColor}
|
||||
secureTextEntry={this.props.secureTextEntry}
|
||||
|
@ -676,6 +675,7 @@ const TextInput = React.createClass({
|
|||
|
||||
return (
|
||||
<TouchableWithoutFeedback
|
||||
onLayout={this.props.onLayout}
|
||||
onPress={this._onPress}
|
||||
accessible={this.props.accessible}
|
||||
accessibilityLabel={this.props.accessibilityLabel}
|
||||
|
|
Loading…
Reference in New Issue