Skip to content

ifsnow/react-native-cjk-textinput-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version

TextInput is shaking when inputing with CJK.

This problem has been fixed in RN v0.63.1, But if you can't use this version, this patch will fix the problem for you!

Usage

Install

Once installed, react-native's TextInput is automatically patched.

yarn add react-native-cjk-textinput-patch --dev

postinstall, postuninstall should be added to prevent this patch from being restored whenever packages are changed.

{
  ...
  "scripts": {
    ...,
    "postinstall": "yarn run cjk-textinput-patch",
    "postuninstall": "yarn run cjk-textinput-patch"
  }
}

If you were already using postinstall, you can add the patch script later.

"postinstall": "yarn run jetify; yarn run cjk-textinput-patch"

Execute manually

You can execute the patch manually with the command below.

yarn run cjk-textinput-patch

Uninstall

Just delete the command you added to postinstall, postuninstall and remove my package.

About

Patch for TextInput problem in CJK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published