react-native-fingerprint-scanner
Version:
React Native Biometrics Scanner for Android and iOS
12 lines (8 loc) • 320 B
JavaScript
import { DeviceEventEmitter, NativeModules, Platform } from 'react-native';
const { ReactNativeFingerprintScanner } = NativeModules;
export default () => {
if (Platform.Version < 23) {
DeviceEventEmitter.removeAllListeners('FINGERPRINT_SCANNER_AUTHENTICATION');
}
ReactNativeFingerprintScanner.release();
}