Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input is broken for Korean, Chinese, Japanese characters #4829

Closed
lukaszfryc opened this issue Jun 19, 2018 · 2 comments · Fixed by #4837
Closed

Text input is broken for Korean, Chinese, Japanese characters #4829

lukaszfryc opened this issue Jun 19, 2018 · 2 comments · Fixed by #4837
Assignees
Labels

Comments

@lukaszfryc
Copy link
Contributor

Description

Type: Bug

Summary: With recent react-native upgrade we introduced a bug with Chinese characters not being displayed correctly in chat input. The bug occurs only on iOS.

Expected behavior

Users can use Korean, Chinese, Japanese keyboards in Status

Actual behavior

Users can't use Korean, Chinese, Japanese keyboards in Status due to facebook/react-native#19339

Reproduction

  • Switch to a Chinese keyboard on iOS
  • Open Status
  • Send messages in Chinese in a chat

Additional Information

  • Status version: 0.9.20
  • Worked in 0.9.19
  • Operating System: iOS
@mandrigin
Copy link
Contributor

Tried to fix upstream too: facebook/react-native#19809

mandrigin added a commit that referenced this issue Jun 20, 2018
The fix is described here: facebook/react-native#19809

The patch:
1. A copy of patched RCTUITextView.m file
2. A pre-action in the "Build" scheme to patch the RN file. See more on
   pre-actions here: https://burcugeneci.wordpress.com/2016/05/25/scripts-we-love-xcode-builds-life-savers/
3. A build step to fail the build if the file wasn't patched.

Signed-off-by: Igor Mandrigin <[email protected]>
@NamITUTC
Copy link

change onChangeText(text=>) =>onKeyPress(text=>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants