@hexar/biometric-identity-sdk-react-native
v1.0.15
Published
React Native wrapper for Biometric Identity SDK
Readme
Biometric Identity SDK - React Native
React Native wrapper for the Biometric Identity SDK.
Installation
npm install @hexar/biometric-identity-sdk-react-native
# or
yarn add @hexar/biometric-identity-sdk-react-nativePeer Dependencies
npm install react-native-vision-camera react-native-permissionsiOS Setup
Add to your Info.plist:
<key>NSCameraUsageDescription</key>
<string>We need camera access to capture your ID and verify your identity</string>Android Setup
Add to your AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />Usage
import { BiometricIdentityFlow } from '@hexar/biometric-identity-sdk-react-native';
function App() {
return (
<BiometricIdentityFlow
onValidationComplete={(result) => {
console.log('Validation complete:', result);
}}
onError={(error) => {
console.error('Validation error:', error);
}}
theme={{
primaryColor: '#6366F1',
backgroundColor: '#FFFFFF',
}}
language="en"
/>
);
}Props
See main SDK documentation for detailed API reference.
License
MIT
