Skip to main content

Troubleshooting

Common Issues​

Expo​

  • NATIVE_MODULE_UNAVAILABLE: The native module isn't in the running binary. Expo Go can't load it, so use a development build (npx expo run:ios, npx expo run:android, or EAS Build). If you're already on a development build, rebuild it after installing or upgrading the library.

iOS​

  • "Biometry is not available": Ensure Face ID/Touch ID is set up in device settings
  • "Passcode not set": Device must have a passcode/password configured
  • Build errors: Make sure iOS deployment target is 11.0 or higher

Android​

  • "No biometric features available": Check if device has fingerprint sensor and it's enrolled
  • "BiometricPrompt not available": Ensure Android API level 24+ (the library's default minSdkVersion) and the androidx.biometric dependency
  • Permission denied: Verify USE_FINGERPRINT and USE_BIOMETRIC permissions are added
  • Face unlock is not offered when signing: Android only lets Class 3 (strong) biometrics or the device credential unlock a Keystore key, and a BiometricPrompt carrying a CryptoObject rejects Class 2 (weak) biometrics. Camera-based face unlock is Class 2 on most phones, so signWithOptions() cannot use it, whatever biometricStrength you pass. The prompt offers the Class 3 biometrics enrolled on the phone (fingerprint, iris, or Class 3 face) and, when the key allows it, the device credential. See signWithOptions() for the prompt-then-sign alternative.

Native crash on 32-bit Android (armeabi-v7a) release builds​

If your app crashes on startup on 32-bit devices in release builds with a backtrace pointing at JavaTurboModule::setEventEmitterCallback / NativeReactNativeBiometricsSpecJSI, this is a React Native core bug (facebook/react-native#51628), not a bug in this library. RN used an unsafe variadic JNI call that misreads the stack on 32-bit ABIs; it is triggered by any TurboModule that declares an event emitter (this library's onBiometricChange). See issue #89 for the full analysis.

Fix: upgrade React Native to a version containing the upstream fix:

RN lineAffectedFixed in
≤ 0.78.xallnever backported — upgrade to 0.79.6+
0.79.x0.79.0 – 0.79.50.79.6
0.80.x0.80.00.80.1
0.81.x and later—not affected

Debug Mode​

Enable debug mode to get detailed logs:

import ReactNativeBiometrics from '@sbaiahmed1/react-native-biometrics';

// Enable debug logging
await ReactNativeBiometrics.setDebugMode(true);

// Perform operations - check console for detailed logs
const result = await ReactNativeBiometrics.isSensorAvailable();

// Disable when done
await ReactNativeBiometrics.setDebugMode(false);

Getting Help​

  1. Check the sections above
  2. Run diagnostic tests using getDiagnosticInfo() and runBiometricTest()
  3. Enable debug mode for detailed logging
  4. Search existing GitHub issues
  5. Create a new issue with:
    • Device information
    • OS version
    • Library version
    • Debug logs
    • Minimal reproduction code