react-native-bypass-keyguard
Version:
React Native Bypass power button password for Android only
24 lines (23 loc) • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.clearShowOverKeyguard = clearShowOverKeyguard;
exports.showOverKeyguard = showOverKeyguard;
var _reactNative = require("react-native");
const LINKING_ERROR = `The package 'react-native-bypass-keyguard' 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 Go\n';
const BypassKeyguard = _reactNative.NativeModules.BypassKeyguard ? _reactNative.NativeModules.BypassKeyguard : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
function showOverKeyguard() {
return BypassKeyguard.showOverKeyguard();
}
function clearShowOverKeyguard() {
return BypassKeyguard.clearShowOverKeyguard();
}
//# sourceMappingURL=index.js.map