Skip to content

Commit

Permalink
make topContentSizeChange event direct (facebook#41011)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Oct 16, 2023
1 parent 490b51c commit 43c9d47
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ const RCTTextInputViewConfig = {
captured: 'onChangeCapture',
},
},
topContentSizeChange: {
phasedRegistrationNames: {
captured: 'onContentSizeChangeCapture',
bubbled: 'onContentSizeChange',
},
},
topEndEditing: {
phasedRegistrationNames: {
bubbled: 'onEndEditing',
Expand Down Expand Up @@ -97,6 +91,9 @@ const RCTTextInputViewConfig = {
topChangeSync: {
registrationName: 'onChangeSync',
},
topContentSizeChange: {
registrationName: 'onContentSizeChange',
},
},
validAttributes: {
fontSize: true,
Expand Down

0 comments on commit 43c9d47

Please sign in to comment.