UNPKG

@adyen/react-native

Version:

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

21 lines (20 loc) 650 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionHandlingComponentWrapper = void 0; exports.isActionComponent = isActionComponent; var _ComponentWrapper = require("./ComponentWrapper"); /** * Wrapper for all Native Modules that support Action handling. * */ class ActionHandlingComponentWrapper extends _ComponentWrapper.ComponentWrapper { handle(action) { this.nativeModule.handle(action); } } exports.ActionHandlingComponentWrapper = ActionHandlingComponentWrapper; function isActionComponent(object) { return 'handle' in object; } //# sourceMappingURL=ActionHandlingComponentWrapper.js.map