react-native-marked-range-text-input
v0.3.10
Published
An extended TextInput component with onMarkedRangedChanged callback
Downloads
22
Readme
react-native-marked-range-text-input
一个 TextInput 组件的拓展
增加 onMarkedRangeChanged 回调,用于标记输入法选区的变化
同时 onChangeText 只会在输入法选区结束之后才会触发
import TextInput from 'react-native-marked-range-text-input';
...
<TextInput
style={styles.input}
onMarkedRangeChanged={this._onMarkedRangeChanged}
onChangeText={this._onChangeText}
/>
...