mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add eventCount property to TextInputKeyPressEventData type (#57331)
Summary: Align `TextInputKeyPressEventData` type with: https://github.com/facebook/react-native/blob/116ea5955c374b1b6f2e62a47f194add96470081/packages/react-native/Libraries/Components/TextInput/TextInput.flow.js#L103 `TextInputKeyPressEventData` was missing the `eventCount` in the event payload. ## Changelog: [GENERAL] [FIXED] - Add eventCount to TextInputKeyPressEventData type Pull Request resolved: https://github.com/react/react-native/pull/57331 Test Plan: Check fabric event emitter: https://github.com/facebook/react-native/blob/618ef02f4a0da31d613bca40019f1abf511cbb1e/packages/react-native/ReactCommon/react/renderer/components/textinput/TextInputEventEmitter.cpp#L113 Reviewed By: javache Differential Revision: D109693681 Pulled By: fabriziocucci fbshipit-source-id: e79da2395d0e9e568cf9b1d06e81b809195d80dd
This commit is contained in:
1 parent
67381e157f
commit
886faee2d1
1 file changed
+1
@@ -501,6 +501,7 @@ export type TextInputSelectionChangeEvent =
|
||||
*/
|
||||
export interface TextInputKeyPressEventData {
|
||||
key: string;
|
||||
eventCount: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user