React Native Cute Touch ID2017-12-29
I have witten a react-native plugin which offers app ability of Touch ID.
- Name: React Native Cute TouchID
- Github: https://github.com/captainwz/react-native-cute-touch-id
React Native Cute TouchID
A small react-native plugin which offers app ability of Touch ID.
Cute TouchID is able to detect changes of touch ID’s additions or deletions which is important to apps in high security level.
Notice
Only support IOS by now.
React Native > 0.43
Installation
1 | npm install --save react-native-cute-touch-id |
Usage
1 | import CuteTouchID from 'react-native-cute-touch-id'; |
To detect if Touch ID is available
1 | CuteTouchID |
To authenticate
1 | CuteTouchID |
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