react-native-digits-input

1.0.2 • Public • Published

Demo Image

Installation

Latest version

v1.0.2

if you have react-native-vector-icons installed in your project

yarn add react-native-digits-input

or with npm

npm install react-native-digits-input --save

Usage

import Component

import DigitsInput from 'react-native-digits-input';

Basic Usage

<DigitsInput numberOfDigits={6} onCodeChange={(text) => console.log(text)} />

Props

Name Type Default
numberOfDigits number 4
onCodeChange * function (value)=>void none
disabled boolean false
numberContainerStyle View Style none
containerStyle View Style none

Package Sidebar

Install

npm i react-native-digits-input

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

9.54 kB

Total Files

7

Last publish

Collaborators

  • mangeshkchauhan