1.0.2 • Published 9 months ago

react-native-digits-input v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Demo Image

npm.io

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

NameTypeDefault
numberOfDigitsnumber4
onCodeChange* function (value)=>voidnone
disabledbooleanfalse
numberContainerStyleView Stylenone
containerStyleView Stylenone