Skip to content

Commit 744fb4a

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Make TextInput.onContentSizeChange event direct (#41012)
Summary: Pull Request resolved: #41012 changelog: [iOS][Breaking] Make TextInput.onContentSizeChange a direct event TextInput.onContentSizeChange should be a direct event. It is a [direct event on Android](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/NativeComponent/BaseViewConfig.android.js#L126C3-L126C23) and even on iOS there are traits that it was meant to be a direct event (https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h#L19C47-L19C47) Seems like an oversight. Reviewed By: javache Differential Revision: D50323402 fbshipit-source-id: 3d1b1f1f0df010d61fbab672ef30e06cf2e2ad39
1 parent b941831 commit 744fb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ @implementation RCTBaseTextInputViewManager {
7171

7272
RCT_EXPORT_SHADOW_PROPERTY(text, NSString)
7373
RCT_EXPORT_SHADOW_PROPERTY(placeholder, NSString)
74-
RCT_EXPORT_SHADOW_PROPERTY(onContentSizeChange, RCTBubblingEventBlock)
74+
RCT_EXPORT_SHADOW_PROPERTY(onContentSizeChange, RCTDirectEventBlock)
7575

7676
RCT_CUSTOM_VIEW_PROPERTY(multiline, BOOL, UIView)
7777
{

0 commit comments

Comments
 (0)