Skip to content

Commit

Permalink
Fix onLayout support in <TextInput> for Android (same than iOS fix: #…
Browse files Browse the repository at this point in the history
…8042)

Summary:
See #8042: exactly the same bug and fix on Android

**Test plan**

```jsx
<TextInput onLayout={function(e) { console.log(e.nativeEvent); }} />
```
Closes #9113

Differential Revision: D3647808

Pulled By: mkonicek

fbshipit-source-id: 252a610e26a72a73411c3407faedea0477bee54e
  • Loading branch information
antoinerousseau authored and Facebook Github Bot 3 committed Jul 31, 2016
1 parent e8c8a06 commit 2ca2f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 2ca2f87

Please sign in to comment.