Permalink
Browse files

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 #9113

Differential Revision: D3647808

Pulled By: mkonicek

fbshipit-source-id: 252a610e26a72a73411c3407faedea0477bee54e
  • Loading branch information...
1 parent e8c8a06 commit 2ca2f87a8277954ff7d2a6ae029cc395ddca9b37 @antoinerousseau antoinerousseau committed with Facebook Github Bot 3 Jul 31, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Components/TextInput/TextInput.js
@@ -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}

0 comments on commit 2ca2f87

Please sign in to comment.