0.2.6 • Published 7 years ago

react-passcode v0.2.6

Weekly downloads
37
License
-
Repository
github
Last release
7 years ago

react-passcode Build Status npm version

Created with React.

Installation

npm i react-passcode

Usage:

<PasscodeComponent
    onSquareClick={this._squareClickHandler}
    onSuccess={this._onSuccess}
    onFailed={this._onFailed}
    onBackClick={this._onBackClick}
    passcode={123123} />

Properties

nametypecomment
passcodenumberThe wanted passcode
randomizebooleanIf numbers must be generated randomly
refreshWhenFailedbooleanAuto refresh current passcode when user failed

Events

namecomment
onSquareClick (optional)Event when the user has pressed a square number
onBackClick (optional)Event when the user has pressed the back button
onSuccess (optional)Event when the passcode is reached
onFailed (optional)Event when the passcode isn't reached
0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago