1.3.4 • Published 2 months ago

react-native-otp-form v1.3.4

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

react-native-otp-form

npm Supports Android, iOS, and Web MIT License

React Native component for OTP Input Form

Getting started

Yarn

yarn add react-native-otp-form

NPM

npm install react-native-otp-form --save

Usage

Example

import OTP from "react-native-otp-form"
<OTP
  codeCount={6}
  containerStyle={{ marginTop: 50 }}
  otpStyles={{ backgroundColor: "#eee" }}
/>

Check out the example project for more examples.

Props

TypeRequiredDescription
codeCountYesHow many otp box/character
containerStyleNoStyles for container View
otpStyleNoStyles for each of TextInput
onTypingNoCallback to get otp when user typing
onFinishNoCallback to get otp value when user finish filled all boxes
...TextInputPropsNoTextInput Props

Running the Example app

While developing, you can run the example app to test your changes.

Setup

  • Clone the repository
  • Go to Example folder (Expo)
  • Run yarn install

Start the app (Example in Expo)

  • Run yarn start

License

The library is released under the MIT licence. For more information see LICENSE.

1.3.4

2 months ago

1.3.3

2 months ago

1.3.1

2 months ago

1.3.0

2 months ago

1.2.0

6 months ago

1.2.4-rc025

6 months ago

1.2.4-rc01

6 months ago

1.2.4-rc02

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.4-rc023

6 months ago

1.1.1

1 year ago

1.1.0

2 years ago

1.1.2

1 year ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago