react-native-biometrics-change-detection
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

react-native-biometrics-change-detection

(IOS only for now) This package helps to determine if biometric data has been added or removed.

Installation

npm install react-native-biometrics-change-detection

Usage

import { biometricsChanged } from 'react-native-biometrics-change-detection';

// ...

biometricsChanged((isNewDataAdded) => {
  if (isNewDataAdded) {
    if (isNewDataAllowedToBeAdded) {
      //This function adds the new data to the library state
      saveBiometricState();
    } else {
      //This function resets the state of the library
      resetBiometricState();
    }
  }
});

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

Package Sidebar

Install

npm i react-native-biometrics-change-detection

Weekly Downloads

5

Version

0.4.0

License

MIT

Unpacked Size

28.2 kB

Total Files

21

Last publish

Collaborators

  • tbako