@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
30 lines (25 loc) • 1.24 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
/**
* Copyright © 2023 Nevis Security AG. All rights reserved.
*/
const LINKING_ERROR = `The package 'nevis-mobile-authentication-sdk-react' 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';
// @ts-expect-error error
const isTurboModuleEnabled = global.__turboModuleProxy != null;
/* eslint-disable @typescript-eslint/no-require-imports */
const NevisMobileAuthenticationSdkReactModule = isTurboModuleEnabled ? require('./NativeNevisMobileAuthenticationSdkReact').default : _reactNative.NativeModules.NevisMobileAuthenticationSdkReact;
/* eslint-enable @typescript-eslint/no-require-imports */
const NevisMobileAuthenticationSdkReact = NevisMobileAuthenticationSdkReactModule ? NevisMobileAuthenticationSdkReactModule : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
var _default = exports.default = NevisMobileAuthenticationSdkReact;
//# sourceMappingURL=MobileAuthenticationSdk.js.map
;