mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make TextInput.onContentSizeChange event direct (#41012)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b9418315e2
commit
744fb4a0d2
@@ -71,7 +71,7 @@ RCT_EXPORT_VIEW_PROPERTY(mostRecentEventCount, NSInteger)
|
||||
|
||||
RCT_EXPORT_SHADOW_PROPERTY(text, NSString)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(placeholder, NSString)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(onContentSizeChange, RCTBubblingEventBlock)
|
||||
RCT_EXPORT_SHADOW_PROPERTY(onContentSizeChange, RCTDirectEventBlock)
|
||||
|
||||
RCT_CUSTOM_VIEW_PROPERTY(multiline, BOOL, UIView)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user