A module parses chinese to pinyin characters for React Native purely through JSI binding.
$ npm install react-native-quick-pinyin
# or yarn add react-native-quick-pinyin
import Pinyin from "react-native-quick-pinyin";
Pinyin.getFullChars('你好')
// nihao
Also, you can check the example.
interface QuickPinyin {
getFullChars: (text: string) => string;
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT