Home

Awesome

react-native-code-verification

An UI module for user-side pincode verification.

Getting started

$ npm i react-native-code-verification --s

Props

NameTypeDescriptionDefault
descriptionTextStringA description textPlease enter pincode for entry
spaceColorColorColor of line under digit#FF0000
closeButtonColorColorColor of X - close button#FF0000
onEnteredPincodeFunctionA function that returns entered code-
onCloseViewFunctionOn press close button, will be useful to close view-
onPressTouchIdFunctionTouch Id is not available, but you can make it by yourself-
withTouchIdBooleanIf you do not neet touch id, you can set it to falseTRUE

Screenshots

<img src="/screenshots/blue.png?raw=true" width="30%"> <img src="/screenshots/second.png?raw=true" width="30%">

Usage

import Pincode from 'react-native-code-verification';

// TODO: What to do with the module?
class Example extends Component {
  public render() {
    return (
      <View style={styles.container}>
        <Pincode onEnteredPincode={pin => this.onDetectPin(pin)} />
      </View>
    );
  }
  private onDetectPin = pin => {
    console.log('pinCode>>>', pin);
  };
}

Credentials

MIT, Otel Danagul