UNPKG

@adyen/react-native

Version:

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

33 lines (32 loc) 979 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddedComponentBusWrapper = void 0; var _EventListenerWrapper = require("../base/EventListenerWrapper"); /** * Communication bus for all embedded Native Modules. * */ class EmbeddedComponentBusWrapper extends _EventListenerWrapper.EventListenerWrapper { name = 'AdyenComponentBus'; subscribe(viewId) { this.nativeModule.subscribe(viewId); } unsubscribe(viewId) { this.nativeModule.unsubscribe(viewId); } handle(viewId, action) { this.nativeModule.handle(viewId, action); } hide(viewId, success, option) { this.nativeModule.hide(viewId, success, option); } update(viewId, results) { this.nativeModule.update(viewId, results); } confirm(viewId, success, body) { this.nativeModule.confirm(viewId, success, body); } } exports.EmbeddedComponentBusWrapper = EmbeddedComponentBusWrapper; //# sourceMappingURL=EmbeddedComponentBusWrapper.js.map