question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Controlled TextInput broken for Chinese (and other languages) in v0.54 on iOS

See original GitHub issue

Controlled TextInput breaks the Chinese pinyin keyboard’s autocomplete feature. A similar issue was raised a year and a half ago (#8265) and fixed by #7496. However, it appears that others are having the same problem (#12599, #18260, #18379), but re-filing the issue with the template filled out and an example to reproduce.

Note that this works correctly in v0.53. This may have something to do with the big Text, TextInput refactor that dropped with v0.54 (Thanks, btw, @shergin and @hovox!).

I’ve included both a working (v0.53) and broken (v0.54) example below.

Environment

Environment: OS: macOS High Sierra 10.13 Node: 9.3.0 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: Not Found

Packages: (wanted => installed) react: 16.2.0 => 16.2.0 react-native: 0.54.0 => 0.54.0

Expected Behavior

Typing on a US keyboard would bring up Chinese characters corresponding to letters typed.

Actual Behavior

Each new letter typed is considered individually, instead of along with the previous untranslated characters.

Shamelessly stealing an image from @ForU who did a nice job of showing the issue:

image

Steps to Reproduce

Unfortunately, expo hasn’t updated to the latest version of React Native. I’ve prepared a small project that demonstrates the issue here. There is a working version on a branch here; same project, just using RN v0.53 instead of v0.54.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:20
  • Comments:39 (12 by maintainers)

github_iconTop GitHub Comments

9reactions
magiciencommented, Mar 20, 2018

I updated the pull request and the sample app. And I tried one of Chinese keyboards. I hope it’s expected behavior. screenshot

6reactions
BooYeucommented, Mar 20, 2018

if it has prop value or defaultvalue,you can’t input Chinese

Read more comments on GitHub >

github_iconTop Results From Across the Web

Q: Chinese input crash my iPhone 4S (iOS 5.01)
But after that I'm keep experiencing app crash issue when typing Chinese characters by using the internal input method provided by iOS.
Read more >
Unable to use Chinese input method—ipad pro with smart ...
I am unable to use any input method but English since updated both windows and iOS to the latest version. Only one way...
Read more >
jp5 new update hack
Jp5 New Update HackThen press and hold the Power key and when the device logo …. Pocket-Sized USB™ Hubs Portable docking station for...
Read more >
Autocorrect suggests words and phrases in another language ...
iOS and iPadOS allow the use of multiple software keyboards, ... used in different languages and those used for alternative input methods, ...
Read more >
League table generator
Input teams and rank them according to the scores and rules. Ditch the pencil and paper. Change multiple matches at once Jul 22,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found