[iOS] TextInput fontFamily issue with some keyboards in iOS #48154
Labels
API: Keyboard
Component: TextInput
Related to the TextInput component.
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Platform: iOS
iOS applications.
Description
I'm not sure what the main cause of the issue is, but I ran into an issue with CJK keyboards in iOS, that the fontFamily is not set correctly.
When the text is typed on keyboards having "pending states" . That is, the state in which the text can be modified by the additional keystrokes and confirmed by the user to be finalized. Examples include:
nh
and selects 你好 to finalize the inputㄱㅏ
yield가
(U+AC00) in its pending states, and an additional keystrokeㄴ
modifies it to be간
(U+AC04)As you can see in the video, when typed using the standard English keyboard, at the first keystroke, the letter is correctly styled with the provided font. But using Chinese/Japanese keyboards, the first keystroke does not change the font and the following keystrokes change it. Even worse, using the Korean keyboard, the font of the TextInput is not changed at all.
Steps to reproduce
Expo snack: https://snack.expo.dev/@kanukim/textinputfonttest
Issues with Korean characters:
You may test the issue with various keyboards including Japanese (romaji) and Chinese (pinyin) inputs.
React Native Version
0.76.3
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@kanukim/textinputfonttest
Screenshots and Videos
Screen.Recording.Dec.6.2024.mov
Please focus on the missing font changes at the first keystrokes.
The text was updated successfully, but these errors were encountered: