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
This commit is contained in:
Samuel Susla
2023-10-16 16:50:41 -07:00
committed by Facebook GitHub Bot
parent 490b51c7c3
commit 43c9d475aa
@@ -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,