From 8a073c1d8b89305a9a2561a7c33740919730f408 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Sat, 24 Feb 2018 00:59:22 -0800 Subject: [PATCH] Fix `onLayout` prop for TextInput on Android Summary: When the `autogrow` prop was removed from `TextInput` on Android, the `_onLayout` helper method was removed. This helper method implemented the hook required to make `autogrow` work, then dispatched the `onLayout` event to the handler in `this.props`. This change points passes the `onLayout` handler from `this.props` directly to the inner component. I was updating copied code in react-native-windows and noticed this bug. Run jest tests. N/A [ANDROID][MINOR][BUGFIX] [TextInput] - Fix `onLayout` prop for TextInput on Android Closes https://github.com/facebook/react-native/pull/18040 Differential Revision: D7078736 Pulled By: hramos fbshipit-source-id: 798530729d7f0ee1ebb59f698af4d4b6ff43928b --- Libraries/Components/TextInput/TextInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index b9eb03bd67526e..3ce82932e17b33 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -880,7 +880,7 @@ const TextInput = createReactClass({ return (