A lightweight and unified React Native library for biometric authentication across iOS and Android
π Documentation: sbaiahmed1.github.io/react-native-biometrics
- π Unified API for Face ID, Touch ID, Optic ID and Android biometrics
- π οΈ Configurable prompts with fallback to device credentials
- π Key management with EC256 and RSA2048 keys, hardware-backed where the platform supports it
- π Non-biometric signing with Keychain/Keystore keys, without a prompt
- π‘οΈ Device integrity checks for rooted and jailbroken devices
- π Biometric change detection for enrollment changes
- π― TypeScript, a TurboModule for the new architecture, and an Expo config plugin
- π¦ CocoaPods and Swift Package Manager on iOS
| Platform | Minimum Version |
|---|---|
| React Native | 0.81+ |
The library is a TurboModule and requires React Native's new architecture. Since version 1.0 the old architecture is not supported; apps still on it can stay on version 0.17.x.
npm install @sbaiahmed1/react-native-biometrics
# or
yarn add @sbaiahmed1/react-native-biometricsThen follow the installation guide for the Expo config plugin or the manual iOS and Android permissions.
import {
isSensorAvailable,
simplePrompt,
} from '@sbaiahmed1/react-native-biometrics';
async function authenticate(): Promise<boolean> {
const sensor = await isSensorAvailable();
if (!sensor.available) {
console.log('Biometrics not available:', sensor.error);
return false;
}
const result = await simplePrompt('Please authenticate to continue');
return result.success;
}The full documentation lives at sbaiahmed1.github.io/react-native-biometrics.
Getting started
Usage
API reference
- Overview
- Configuration
- Core functions
- Key management
- Device security
- Debugging
- Logging
- Key integrity
- Biometric change detection
- Error codes
Guides
More
MIT
- Built with create-react-native-library
- Inspired by existing libraries like react-native-biometrics
Made with β€οΈ by @sbaiahmed1
β Star this repo if it helped you!

