UNPKG

@adyen/react-native

Version:

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

19 lines (16 loc) 652 B
"use strict"; import { Event } from '../../core'; import { PaymentComponentWrapper } from './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 */ export class ActionHandlingComponentWrapper extends PaymentComponentWrapper { static events = [Event.onAdditionalDetails]; handle(action) { this.nativeModule.handle(action); } } //# sourceMappingURL=ActionHandlingComponentWrapper.js.map