mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
92926f9858
Summary: The `onLayout` prop is overridden by `<TouchableWithoutFeedback>` and thus does not work on `<TextInput>` components.fb0007d853/Libraries/Components/Touchable/TouchableWithoutFeedback.js (L176)
This makes it so the following works. ```javascript <TextInput onLayout={...} /> ``` I only tested on iOS but I assume a similar fix might be needed for Android.fb0007d853/Libraries/Components/TextInput/TextInput.js (L575)
**Test Plan** https://rnplay.org/apps/euIZtg (confirm bug) With fix, set `onLayout` on `<TextInput>` and see it is fired correctly. ```javascript <TextInput onLayout={function(e) { console.log(e.nativeEvent); }} /> ``` Closes https://github.com/facebook/react-native/pull/8042 Differential Revision: D3417192 fbshipit-source-id: 536ec81d3479e6bda474ac766b27afb39242c01a