Skip to content

Commit

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

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

**Test plan**

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

Differential Revision: D3647808

Pulled By: mkonicek

fbshipit-source-id: 252a610e26a72a73411c3407faedea0477bee54e
  • Loading branch information
antoinerousseau authored and Bartol Karuza committed Aug 3, 2016
1 parent 360e072 commit 5170b8e
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 5170b8e

Please sign in to comment.