lotosbin / react-native-pin-input-sample

sample for react-native-pin-input
MIT License
1 stars 0 forks source link
input pin react-native sample

react-native-pin-input-sample

A sample for react-native-pin-input

Installation

npm install --save react-native-pin-input

or

yarn add react-native-pin-input

Sample

set keyboardType

        <PinInput
              ref={"pin"}
              pinLength={6}
              value={'654321'}
              autoFocus={false}
              pinItemStyle={{width: 50, height: 50}}
              pinItemProps={{keyboardType:'number-pad'}}
              onPinCompleted={(pin) => {
                  this.setState({pin: pin})
              }}
          />

method

this.refs.pin.setPin('123456')