UNPKG

@adyen/react-native

Version:

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

13 lines (12 loc) 679 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_plugins_1 = require("@expo/config-plugins"); const withAdyenAndroid_1 = require("./withAdyenAndroid"); const withAdyenIos_1 = require("./withAdyenIos"); const pkg = require('@adyen/react-native/package.json'); const withAdyen = (config, props) => { config = (0, withAdyenIos_1.withAdyenIos)(config, props !== null && props !== void 0 ? props : { merchantIdentifier: undefined, useFrameworks: false }); config = (0, withAdyenAndroid_1.withAdyenAndroid)(config); return config; }; exports.default = (0, config_plugins_1.createRunOncePlugin)(withAdyen, pkg.package, pkg.version);