UNPKG

@adyen/react-native

Version:

Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native

26 lines (23 loc) 836 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AdyenAction = exports.ActionModuleWrapper = void 0; var _reactNative = require("react-native"); /** Describes a native module capable of handling actions standalone. */ 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. */ exports.ActionModuleWrapper = ActionModuleWrapper; const AdyenAction = exports.AdyenAction = new ActionModuleWrapper(_reactNative.NativeModules.AdyenAction); //# sourceMappingURL=ActionModule.js.map