Socket
Socket
Sign inDemoInstall

react-native-confirmation-code-field

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-confirmation-code-field

A react-native component to input confirmation code for both Android and IOS


Version published
Weekly downloads
67K
decreased by-12.37%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-confirmation-code-field

npm Travis

A react-native confirmation code field for both IOS and Android (base on this project Migration Guide)

Component features:

  • 🔮 Simple. Easy to use.
  • 🍎 IOS "fast paste SMS-code" support.
  • 🚮 Clearing part of the code by clicking on the cell
  • 🛠 Extendable and hackable.
  • 🤓 Readable changelog.

Screenshots

Install

yarn add react-native-confirmation-code-field
# or
npm install react-native-confirmation-code-field

Usage

import React, { Component } from 'react';
import CodeInput from 'react-native-confirmation-code-field';

class App extends Component {
  handlerOnFulfill = code => console.log(code);

  render() {
    return <CodeInput onFulfill={this.handlerOnFulfill} />;
  }
}

How it works?

This component consists of:

  1. Container <View {...containerProps}/>;
  2. Render the "Cells" for the text code inside the container ("Cells" is <TextInput {...cellProps} />);
  3. And over this render invisible <TextInput {...inputProps}/>;
  4. "Cursor" inside cell is simulated component

Keywords

FAQs

Package last updated on 01 Feb 2019

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