@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
20 lines (17 loc) • 627 B
JavaScript
import { NativeModules } from 'react-native';
/** Describes a native module capable of handling actions standalone. */
export class ActionModuleWrapper {
constructor(nativeModule) {
this.nativeModule = nativeModule;
this.threeDS2SdkVersion = nativeModule.getConstants().threeDS2SdkVersion;
}
handle(action, configuration) {
return this.nativeModule.handle(action, configuration);
}
hide(success) {
this.nativeModule.hide(success);
}
}
/** Standalone Action Handling module. */
export const AdyenAction = new ActionModuleWrapper(NativeModules.AdyenAction);
//# sourceMappingURL=ActionModule.js.map