Recover and return the body for a rekognition service
npm install react-native-biometric-data
import { BiometricDataComponent, type ReactBiometricConfig, type ReactBiometricUser } from 'react-native-biometric-data';
// ...
Define config, user and callback inputs
example:
const handleBiometricDataSubmit = (body: any) => {
console.log('Biometric data submitted:', body);
}
const user: ReactBiometricUser = {
firstName: 'John',
lastName: 'Doe',
email: 'test@example.com',
}
const config: ReactBiometricConfig = {
apiBaseUrl: 'https://test.com/api/base/url/',
biometricDataEndpoint: 'biometric/data/endpoint/'
}
return (
<View style={styles.container}>
<BiometricDataComponent config={config}
onSubmit={handleBiometricDataSubmit}
user={user}
/>
</View>
);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library