@weedx/react-native-code-input
v0.0.1
Published
a react native input component, pure javascript solution
Downloads
3
Readme
@weedx/react-native-code-input
A component for react-native
Needs React Native Version above than 0.59
Installation
Using npm:
npm install --save @weedx/react-native-code-input
or using yarn:
yarn add @weedx/react-native-code-input
Usage
import CodeInput from '@weedx/react-native-code-input';
<CodeInput
length={6}
onValueChanged={(value) => {
if (value.length === 6) {
console.log('输入完成')
}
}}
/>
Configurable props
- length
- onValueChanged
Methods
- clear