January 2019
Intermediate to advanced
592 pages
14h 30m
English
For this recipe we'll need a new pure React Native app. Let's call it BiometricAuth.
We'll be using the react-native-button and react-native-touch-id libraries. Install them with npm:
npm install react-native-button react-native-touch-id --save
Alternatively, we can use yarn:
yarn add react-native-button react-native-touch-id
Once installed, react-native-touch-id will need to be linked, so be sure to follow up with:
react-native link
Permissions will also need to be adjusted manually. For Android permissions, locate the AndroidManifest.xml file in the project, which should be at BiometricAuth/android/app/src/main/AndroidManifest.xml. Along with the other permissions in this file, you'll need to add the following:
<uses-permission ...
Read now
Unlock full access