react-native-code-verification

1.0.7 • Public • Published

react-native-code-verification

An UI module for user-side pincode verification.

Getting started

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

Props

Name Type Description Default
descriptionText String A description text Please enter pincode for entry
onEnteredPincode Function A function that returns entered code -
onCloseView Function On press close button, will be useful to close view -
onPressTouchId Function Touch Id is not available, but you can make it by yourself -

Screenshots

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

Readme

Keywords

Package Sidebar

Install

npm i react-native-code-verification

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

142 kB

Total Files

13

Last publish

Collaborators

  • danchoka