npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@optisolbusiness/react-native-otp-inputs

v0.0.33

Published

test

Downloads

41

Readme

@optisolbusiness/react-native-otp-inputs

@optisolbusiness/react-native-otp-inputs

Installation

npm i @optisolbusiness/react-native-otp-inputs

npm install react-native-otp-verify

Usage

Things to follow for auto read otp feature

android

Make otpAutoRead prop as true can get hashValue from hashValue prop pass this hashValue while sending otp

While crafting the OTP message keep below things in mind

Should start with <#>, to register as an OTP SMS The message should end with the generated hash key

Sample Message

<#> Welcome to AwsomeProject. Your verification code is 5843.

kFUwfusCq/+ => Give your hash value

ios

In ios auto read otp work for ios 12+

In device settings => Passwords Enable AutoFill Passwords

In code Pass textType={'oneTimeCode'} for auto read otp from messages in ios

In ios otp will not fill automatically from messages, it will appear on top of keyboard. When click on otp it will fill automatically.

import { OTP_Input } from "@optisolbusiness/react-native-otp-inputs";
// ...

<OTP_Input
        numberOfDigits={5}
        onHandleOTPChange={valueChange}
        otpAutoRead={true}
        hashValue={hashNum} 
        InputStyle={{                 
          margin: 5,
          width: 40,
          height: 40,
          borderWidth: 1,
          borderColor: "#ccc",
          fontSize: 18,
          textAlign: "center",
          borderRadius: 5,
        }}
        styleContiner={{                  
          flexDirection: "row",
          justifyContent: "flex-start",
          alignItems: "center",
        }}
         textType={'oneTimeCode'}
      />

OTP_INput Props

| Prop | Type | Description | :------------ |:---------------| :-----| | numberOfDigits | Number | Mandatory. Pass Number accorind to requirement | | onHandleOTPChange | Function | Mandatory. On otp input change | | otpAutoRead | boolean | Optional. Enable for auto read otp feature in android | | hashValue | Number | Optional. Pass this hash value while sending messages in android | | textType | String | Optional. Give oneTimeCode prop to enable auto read otp feature in ios | | InputStyle | Object | Optional. overide container style | | styleContiner | Object | Optional. overide TextBox style |

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library