From 886faee2d140338dba1c3788ec3ac5b4f231157b Mon Sep 17 00:00:00 2001 From: pchalupa Date: Thu, 25 Jun 2026 06:04:22 -0700 Subject: [PATCH] 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 --- .../react-native/Libraries/Components/TextInput/TextInput.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts index 9f3966bc7dc..407a73e786f 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts +++ b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts @@ -501,6 +501,7 @@ export type TextInputSelectionChangeEvent = */ export interface TextInputKeyPressEventData { key: string; + eventCount: number; } /**