@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.
11 lines • 626 B
JavaScript
import { NativeModules } from '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 = NativeModules.SocureDocVReactNative ? NativeModules.SocureDocVReactNative : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
export function launchSocureDocV(docVTransactionToken, publicKey, useSocureGov, onSuccess, onError) {
return SocureDocVReactNative.launchSocureDocV(docVTransactionToken, publicKey, useSocureGov, onSuccess, onError);
}
//# sourceMappingURL=index.js.map