GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - abdymm/react-native-otp-form: UI Component For OTP Input Form

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
src/Otp
src/Otp
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
README.MD
README.MD
 
 
index.tsx
index.tsx
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

react-native-otp-form

npm Supports Android, iOS, and Web MIT License

React Native component for OTP Input Form

DEMO

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

  • Inherited TextInput props...
Type Required Description
codeCount Yes How many otp box/character
containerStyle No Styles for container View
otpStyle No Styles for each of TextInput
onTyping No Callback to get otp when user typing
onFinish No Callback to get otp value when user finish filled all boxes
...TextInputProps No TextInput 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.

About

UI Component For OTP Input Form

www.npmjs.com/package/react-native-otp-form

Topics

componentotpreact-native

Resources

Readme
Activity

Stars

9 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.