UNPKG

@adyen/react-native

Version:

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

17 lines (16 loc) 552 B
import { ComponentWrapper } from './ComponentWrapper'; import { Event } from '../core/constants'; /** * Wrapper for all Native Modules that support Action handling. * */ export class ActionHandlingComponentWrapper extends ComponentWrapper { constructor(nativeModule, events) { const allEvents = [Event.onAdditionalDetails]; events?.forEach(element => allEvents.push(element)); super(nativeModule, allEvents); } handle(action) { this.nativeModule.handle(action); } } //# sourceMappingURL=ActionHandlingComponentWrapper.js.map