react-native-zoi-local-authentication
Version:
unlock your phone with local authentication pin|password|pattern|fingerprint
24 lines (19 loc) • 780 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Unlock;
var _reactNative = require("react-native");
const LINKING_ERROR = `The package 'react-native-zoi-local-authentication' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
ios: "- You have run 'pod install'\n",
default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
const ZoiLocalAuthentication = _reactNative.NativeModules.ZoiLocalAuthentication ? _reactNative.NativeModules.ZoiLocalAuthentication : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
function Unlock(a, b) {
return ZoiLocalAuthentication.unlock(a, b);
}
//# sourceMappingURL=index.js.map
;