SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
664 stars 228 forks source link

Is biometrics allowed? #270

Open zvitek opened 10 months ago

zvitek commented 10 months ago

Hi, the bridge offers you the possibility to check if there is a biometric identification option on the device. Is there any way to know if the user has it enabled? I would hate to offer users an option they don't have enabled.

Thank you

sbaiahmed1 commented 10 months ago

If FaceID (for example) is disabled in iOS the method isSensorAvailable will return unknown as a response so if the response is unknown feel free to show/hide the component you made for FaceID