Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@miidx/rn-pin-input

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miidx/rn-pin-input

A React Native pin-input field component with time count down

  • 0.9.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rn-pin-input

A React Native pin-input component with time count down. This component will always show empty six pin-input field to be filled later by user.

Installation

    npm i @miidx/rn-pin-input

Usage

    <PinInput
        value={'123456'}
        onTextChanged={input => { console.log(input); }}
        pinExpirationDate="2019-12-19T17:32+07:00"
        onPinExpired={() => { console.log('Time is up!'); }}
        countdownLabel={'PIN will expire in'}
    />

Properties

NameDescriptionTypeRequiredDefault value
containerStyleStyle of text input field containerobjectno{}
contentContainerStyleStyle of each pin-input containerobjectno{}
countdownLabelText shown beside time count downstringno''
expiringLabelText shown after reach end time of count downstringno'Pin has expired'
onPinExpiredCallback called when pin has expiredfunctionyes
onTextChangedCallback when text on pin-input field changedfunctionyes
pinExpirationDateExpiring pin time value in complete ISO-8601 date time format YYYY-MM-DDTHH:mmZ. YYYY is 4 digit year, MM is month number, DD is day of month, HH is hours in 24 hour time, mm is minutes, and Z is offset from UTC time, such as +-HH:mm. Adding seconds s and fractional seconds SS are optionalstringyes
textStyleStyle of pin text inside componentobjectno{}
valueComplete number value of pin inputstringyes


Note:

  • This package use rn-count-down component for its count down timer to read the documentation, click here.

FAQs

Package last updated on 08 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc