mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Introduce TextInput.onKeyPressSync
Summary: changelog: [internal] Introduce a way to execute `onKeyPress` synchronously. This feature is experimental and will be changed in the future. It is not decided if marking native events as "sync" is going to be path forward with synchronous access. NOTE: This is experimental API. Reviewed By: ShikaSD Differential Revision: D32882092 fbshipit-source-id: 68c66a9bb7c97758219e085c88a77f3c475c1eb3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
69acb9569e
commit
f5f6fd70f2
@@ -61,6 +61,7 @@ RCT_EXPORT_VIEW_PROPERTY(textContentType, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(passwordRules, NSString)
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onKeyPressSync, RCTDirectEventBlock)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onSelectionChange, RCTDirectEventBlock)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onTextInput, RCTDirectEventBlock)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onScroll, RCTDirectEventBlock)
|
||||
|
||||
Reference in New Issue
Block a user