0.2.0 • Published 1 year ago

react-native-biometric-data v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-biometric-data

Recover and return the body for a rekognition service

Installation

npm install react-native-biometric-data

Usage

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>
  );

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library