Skip to content

Commit 886faee

Browse files
pchalupameta-codesync[bot]
authored andcommitted
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: #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
1 parent 67381e1 commit 886faee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/Libraries/Components/TextInput/TextInput.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ export type TextInputSelectionChangeEvent =
501501
*/
502502
export interface TextInputKeyPressEventData {
503503
key: string;
504+
eventCount: number;
504505
}
505506

506507
/**

0 commit comments

Comments
 (0)