From 43c9d475aabbbbfd473449cd1851b14f55817223 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 16 Oct 2023 16:50:41 -0700 Subject: [PATCH] make topContentSizeChange event direct (#41011) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41011 changelog: [internal] topContentSizeChange should be a direct event. Otherwise it collides with ScrollView's `onContentSizeChange` any may break FlatList Reviewed By: javache Differential Revision: D50323281 fbshipit-source-id: dd8713acfdd5158ac8175b8efe5027d06cd0d0a8 --- .../Components/TextInput/RCTTextInputViewConfig.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js b/packages/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js index 88d3cc8fe75..f91026796ce 100644 --- a/packages/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js +++ b/packages/react-native/Libraries/Components/TextInput/RCTTextInputViewConfig.js @@ -31,12 +31,6 @@ const RCTTextInputViewConfig = { captured: 'onChangeCapture', }, }, - topContentSizeChange: { - phasedRegistrationNames: { - captured: 'onContentSizeChangeCapture', - bubbled: 'onContentSizeChange', - }, - }, topEndEditing: { phasedRegistrationNames: { bubbled: 'onEndEditing', @@ -97,6 +91,9 @@ const RCTTextInputViewConfig = { topChangeSync: { registrationName: 'onChangeSync', }, + topContentSizeChange: { + registrationName: 'onContentSizeChange', + }, }, validAttributes: { fontSize: true,