0.0.7 • Published 1 year ago

fingerun v0.0.7

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

fingerun

React Native Plugin for checking fingerprint

Installation

npm install fingerun

App Permissions

Add the following permissions to their respective files:

Android

In your AndroidManifest.xml:

API level 28+ (Uses Android native BiometricPrompt) (Reference)

<uses-permission android:name="android.permission.USE_BIOMETRIC" />

API level 23-28 (Uses Android native FingerprintCompat) Reference)

<uses-permission android:name="android.permission.USE_FINGERPRINT" />

Usage

import Fingerun, { toast } from 'fingerun';

// ...

Fingerun.isSupported()
  .then(res => {
    toast('Fingerprint supported');
    Fingerun.on('error', data => {
      // on error
    });
    Fingerun.on('match', data => {
      // code when finger matched
      toast('Fingerprint matched');
    });
    Fingerun.on('not-match', data => {
      // code when finger not-match or blocked
      toast(JSON.stringify(data));
    });
    // Start matching
    Fingerun.start(3); // min: 1, max:5
  })
  .catch(e => {
    // error occured
    toast('Fingerprint not supported');
  });

Contributing

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

License

MIT


Made with Iandrisoa Tactic Rayan

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago