UNPKG

react-native-instantpay-rd-service

Version:
26 lines (25 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactNative = require("react-native"); const LINKING_ERROR = `The package 'react-native-instantpay-rd-service' 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 InstantpayRdService = _reactNative.NativeModules.InstantpayRdService ? _reactNative.NativeModules.InstantpayRdService : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); const RdService = _reactNative.Platform.OS === "ios" ? null : { getFingerPrint: (deviceName, pidOption) => { return InstantpayRdService.getFingerPrint(deviceName, pidOption); }, openFaceAuth: pidOption => { return InstantpayRdService.openFaceAuth(pidOption); } }; var _default = exports.default = RdService; //# sourceMappingURL=index.js.map