UNPKG

@socure-inc/docv-react-native

Version:

The Predictive Document Verification (DocV) SDK React Native bridge allows you to use the DocV SDK v5 for Android and iOS in your React Native application.

17 lines (16 loc) 768 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.launchSocureDocV = launchSocureDocV; var _reactNative = require("react-native"); const LINKING_ERROR = `The package '@socure-inc/docv-react-native' doesn't seem to be linked.\n\n` + '- Rebuilt the app after installing the package'; const SocureDocVReactNative = _reactNative.NativeModules.SocureDocVReactNative ? _reactNative.NativeModules.SocureDocVReactNative : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); function launchSocureDocV(docVTransactionToken, publicKey, useSocureGov, onSuccess, onError) { return SocureDocVReactNative.launchSocureDocV(docVTransactionToken, publicKey, useSocureGov, onSuccess, onError); } //# sourceMappingURL=index.js.map