Skip to content

Commit

Permalink
Merge pull request #3 from ConnectedHomes/Fingerprint_scanner_update_…
Browse files Browse the repository at this point in the history
…android

Finger print library update for Reset Finger Print Identify.
  • Loading branch information
vikas0309 authored Aug 15, 2018
2 parents 9463b57 + 49d45e8 commit d189837
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ public void isSensorAvailable(final Promise promise) {
}
}

@ReactMethod
public void resetFingerPrintIdentify() {
mFingerprintIdentify = null;
}

@ReactMethod
public void biometryType(final Promise promise) {
String errorMessage = getErrorMessage();
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import authenticate from './authenticate';
import isSensorAvailable from './isSensorAvailable';
import biometryType from './biometryType';
import release from './release';
import resetFingerPrintIdentify from './resetFingerPrintIdentify';


export default {
authenticate,
release,
isSensorAvailable,
biometryType
biometryType,
resetFingerPrintIdentify
};
8 changes: 8 additions & 0 deletions src/resetFingerPrintIdentify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { NativeModules } from 'react-native';

const { ReactNativeFingerprintScanner } = NativeModules;

export default () => {
ReactNativeFingerprintScanner.resetFingerPrintIdentify()
}

0 comments on commit d189837

Please sign in to comment.