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:
Antoine Rousseau 2016-07-31 07:50:16 -07:00 committed by Facebook Github Bot 3
parent e8c8a06329
commit 2ca2f87a82
1 changed files with 1 additions and 1 deletions

View File

@ -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}