Skip to content

captainwz/react-native-cute-touch-id

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

React Native Cute TouchID

react-native version npm version

A small react-native plugin which offers app touch ID ability.

Cute TouchID is able to detect changes of touch ID's additions or deletions which is important to apps in high security level.

example

Notice

Only support IOS by now.

React Native > 0.43

Installation

npm install --save react-native-cute-touch-id

react-native link

Usage

import CuteTouchID from 'react-native-cute-touch-id';

To detect if Touch ID is available

CuteTouchID
.isSupported()
.then(success => {
	// supported
})
.catch(e => {
	// not supported
})

To authenticate

CuteTouchID
.authenticate('My Authenticate Reason')
.then(success => {
	// success
})
.catch(e => {
	// error happens
})

Error Types

  • TOUCH ID CHANGED
  • AUTHENTICATION FAILED
  • APP CANCEL
  • INVALID CONTEXT
  • NOT INTERACTIVE
  • PASS CODE NOT SET
  • SYSTEM CANCEL
  • USER CANCEL
  • USER FALLBACK
  • BIOMETRY LOCKOUT
  • BIOMETRY NOT ENROLLED
  • BIOMETRY NOT AVAILABLE
  • UNKNOWN ERROR

Lisence

MIT

About

A small react-native plugin which offers app touch ID ability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published