@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
28 lines (27 loc) • 786 B
JavaScript
;
import { EventListenerWrapper } from '../base/EventListenerWrapper';
/**
* Communication bus for all embedded Native Modules.
* */
export class EmbeddedComponentBusWrapper extends 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);
}
}
//# sourceMappingURL=EmbeddedComponentBusWrapper.js.map