npm i --save react-native-biometric-authentication
or
yarn add react-native-biometric-authentication
In order to use biometric auth, you must first link the library to your project.
Use the built-in command:
react-native link react-native-biometric-authentication
On iOS you can also link package by updating your podfile
pod 'TouchID', :path => "#{node_modules_path}/react-native-biometric-authentication"
and then run
pod install
Add the following permissions to their respective files:
In your Info.plist:
<key>RNFaceAuthentication</key>
<string>faceAuthentication</string>
account.</string>
import { authorize } from 'react-native-biometric-authentication';
// ...
const result = await authorize();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library