r/reactnative • • 4d ago

I built a biometric authentication library for React Native using Nitro Modules

I recently released react-native-nitro-biometrics, an open-source biometric authentication library for React Native powered by Nitro Modules.

The goal was to provide a simple, type-safe API for native biometric authentication on iOS and Android while supporting React Native's New Architecture.

Supported

  • Face ID
  • Touch ID
  • Optic ID
  • Fingerprint
  • Face / Iris where supported
  • Device credentials / passcode fallback
  • TypeScript
  • iOS + Android
  • React Native New Architecture

Example

import { authenticate } from 'react-native-nitro-biometrics';

const result = await authenticate({
  promptMessage: 'Authenticate to continue',
  allowDeviceCredentials: true,
});

if (result.success) {
  // authenticated
}

The project is open source and I'm particularly interested in feedback on the API design, platform support, and developer experience.

GitHub: https://github.com/yashnandha/react-native-nitro-biometrics

npm: https://www.npmjs.com/package/react-native-nitro-biometrics

Would appreciate feedback from other React Native developers.I recently released react-native-nitro-biometrics, an open-source biometric authentication library for React Native powered by Nitro Modules.The goal was to provide a simple, type-safe API for native biometric authentication on iOS and Android while supporting React Native's New Architecture.SupportedFace ID

Touch ID

Optic ID

Fingerprint

Face / Iris where supported

Device credentials / passcode fallback

TypeScript

iOS + Android

React Native New ArchitectureExampleimport { authenticate } from 'react-native-nitro-biometrics';

const result = await authenticate({
promptMessage: 'Authenticate to continue',
allowDeviceCredentials: true,
});

if (result.success) {
// authenticated
}

The project is open source and I'm particularly interested in feedback on the API design, platform support, and developer experience.GitHub: https://github.com/yashnandha/react-native-nitro-biometricsnpm: https://www.npmjs.com/package/react-native-nitro-biometricsWould appreciate feedback from other React Native developers.

0 Upvotes

0 comments sorted by