Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ifsnow/react-native-cjk-textinput-patch
Patch for TextInput problem in CJK
https://github.com/ifsnow/react-native-cjk-textinput-patch
react-native
Last synced: about 2 months ago
JSON representation
Patch for TextInput problem in CJK
- Host: GitHub
- URL: https://github.com/ifsnow/react-native-cjk-textinput-patch
- Owner: ifsnow
- Created: 2020-05-22T04:33:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T13:36:28.000Z (about 4 years ago)
- Last Synced: 2024-07-05T14:49:02.889Z (3 months ago)
- Topics: react-native
- Language: Objective-C
- Size: 5.86 KB
- Stars: 29
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - react-native-cjk-textinput-patch
README
[![NPM Version][npm-image]][npm-url]
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.
```bash
yarn add react-native-cjk-textinput-patch --dev
````postinstall`, `postuninstall` should be added to prevent this patch from being restored whenever packages are changed.
```javascript
{
...
"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.
```javascript
"postinstall": "yarn run jetify; yarn run cjk-textinput-patch"
```### Execute manually
You can execute the patch manually with the command below.
```bash
yarn run cjk-textinput-patch
```### Uninstall
Just delete the command you added to `postinstall`, `postuninstall` and remove my package.[npm-image]: https://img.shields.io/npm/v/react-native-cjk-textinput-patch.svg?style=flat-square
[npm-url]: https://npmjs.org/package/react-native-cjk-textinput-patch