Giter Site home page Giter Site logo

westcode / react-native-keycode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tschoffelen/react-native-keycode

0.0 1.0 0.0 84 KB

๐Ÿ”ข Show the user a input form for a fixed-length code or password.

Home Page: https://flexible.agency

JavaScript 100.00%

react-native-keycode's Introduction

React Native Keycode

Show the user a input form for a fixed-length code or password.

Installation

npm i -S react-native-keycode         # or: yarn add react-native-keycode

Usage

// import statement:
import { KeycodeInput } from 'react-native-keycode'

// in your render function:
<KeycodeInput
  onComplete={(value) => {
    alert(value)
  }}
/>

Complete example

View a more complex example here: example/App.js.

Props

  • number length: number of characters in input (default: 4)
  • string textColor: color string for the color of the characters (default: black)
  • string tintColor: color string for the color of the active bottom bar (default: iOS blue)
  • string defaultValue: default ''
  • string value: default ''
  • boolean uppercase: default true
  • boolean autoFocus: default true
  • boolean alphaNumeric: default true, set to false to allow other characters than 0-9, A-Z
  • boolean numberic: default false
  • object style
  • function onComplete
  • function onChange
  • function ref

Authors

This library is developed by Includable, a creative app and web platform development agency based in Amsterdam, The Netherlands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.