React native module for fingerprint
npm install fingerunReact Native Plugin for checking fingerprint
``sh`
npm install fingerun
Add the following permissions to their respective files:
#### Android
In your AndroidManifest.xml:
API level 28+ (Uses Android native BiometricPrompt) (Reference)
`xml`
API level 23-28 (Uses Android native FingerprintCompat) Reference)
`xml`
`js
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');
});
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with Iandrisoa Tactic Rayan