UNPKG

@adyen/react-native

Version:

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

23 lines (21 loc) 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionHandlingComponentWrapper = void 0; var _core = require("../../core"); var _PaymentComponentWrapper = require("./PaymentComponentWrapper"); /** Native module interface for action-handling components */ /** * Wrapper for Native Modules that support Action handling. * Supports: onAdditionalDetails event (in addition to inherited events). * @typeParam T - The specific native module interface for the concrete wrapper */ class ActionHandlingComponentWrapper extends _PaymentComponentWrapper.PaymentComponentWrapper { static events = [_core.Event.onAdditionalDetails]; handle(action) { this.nativeModule.handle(action); } } exports.ActionHandlingComponentWrapper = ActionHandlingComponentWrapper; //# sourceMappingURL=ActionHandlingComponentWrapper.js.map