Biometrics
How to use it?
Show screen to request permissions to configure touch ID or face ID:
Import
AUTH_BIOMETRICS_SCREENS
constant where you have theStack.Navigator
you want to display the biometrics screen:
Add this code block to the
Stack.Navigator
you want to display the biometrics screen:
Import the
AuthBiometricsStackParams
type where you have the stack params list type of theStack.Navigator
you want to display the biometrics screens. It is usually thetypes.ts
file:
Add the AuthBiometricsStackParams
type to your stack params list type, so your stack navigator can recognize the biometrics screens.
Take the following as an example:
2. Add buttons to log in with biometrics:
Import
BiometricsButtons
component where you want to use biometric login:
Add this code block to show login buttons with biometrics:
Last updated