How to implement screen lock to a react native app

5.1k Views Asked by At

I wish to add a security feature to my mobile application that every time a user opens the app, it shows default screen lock of the device (pin, password, facial recognition, or fingerprint)

1

There are 1 best solutions below

10
On

You will need local authentication

If you are using expo then you have https://docs.expo.io/versions/v30.0.0/sdk/local-authentication

Otherwise it can be directly installed using https://www.npmjs.com/package/expo-local-authentication