Closed pklatka closed 14 hours ago
I guess that this might be caused by how keyPressMetricsPayload is implemented - the key which is passed to the event object is always a one char
.
And by
Run the app with npm run ios or npm run android
I assume it's happening both on Android & iOS or just an iOS thing since it might be caused by iostextinput ?
I could only reproduce that on iOS (I forgot to update this repro step 😕)
The problem is also entering non ASCII character (é) is being registered as onChange
event instead of onKeyPress
@pklatka @deepanshushuklad11 Can you try https://github.com/facebook/react-native/pull/45274 with Cyrillic, Chinese characters. I have verified it works for accent letters & Emojis on iOS.
Description
When a non-ASCII character is entered in the
TextInput
component,onKeyPress
does not return properkey
value. This issue doesn't exist on old architecture.Steps to reproduce
npm run ios
TextInput
React Native Version
0.74.2
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/pklatka/non-ascii-key-press-repro
Screenshots and Videos