android/src/main/java/dev/mcodex/RNSensitiveInfo/RNSensitiveInfoModule.java
/**
     * Checks whether the device supports Biometric authentication and if the user has
     * enrolled at least one credential.
     *
     * @return true if the user has a biometric capable device and has enrolled
     * one or more credentials
     */
Checks whether the device supports Biometric authentication and if the user has
enrolled at least one credential.

@return true if the user has a biometric capable device and has enrolled
one or more credentials
Checks whether the device supports Biometric authentication and if the user has enrolled at least one credential . @return true if the user has a biometric capable device and has enrolled one or more credentials
private boolean hasSetupBiometricCredential() {
        try {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                ReactApplicationContext reactApplicationContext = getReactApplicationContext();
                BiometricManager biometricManager = BiometricManager.from(reactApplicationContext);
                int canAuthenticate = biometricManager.canAuthenticate();
                return canAuthenticate == BiometricManager.BIOMETRIC_SUCCESS;
            } else {
                return false;
            }
        } catch (Exception e) {
            return false;
        }
    }
private boolean hasSetupBiometricCredential ( ) { try { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { ReactApplicationContext reactApplicationContext = getReactApplicationContext ( ) ; BiometricManager biometricManager = BiometricManager . from ( reactApplicationContext ) ; int canAuthenticate = biometricManager . canAuthenticate ( ) ; return canAuthenticate == BiometricManager . BIOMETRIC_SUCCESS ; } else { return false ; } } catch ( Exception e ) { return false ; } }
Checks whether the device supports Biometric authentication and if the user has
 enrolled at least one credential.
Checks whether the device supports Biometric authentication and if the user has enrolled at least one credential .