Skip to content

mangeshkchauhan/react-native-digits-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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