react-native-expo-braintree
Version:
React native and expo wrapper around braintree sdk fro android and ios
26 lines (24 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withExpoBraintreePlugin = exports.default = void 0;
var _configPlugins = require("@expo/config-plugins");
var _withExpoBraintree = require("./withExpoBraintree.android");
var _withExpoBraintree2 = require("./withExpoBraintree.ios");
const pkg = require('react-native-expo-braintree/package.json');
const withExpoBraintreePlugin = (expoConfig, props) => {
// Android mods
let config = (0, _withExpoBraintree.withExpoBraintreeAndroid)(expoConfig, props);
// IOS mods
config = (0, _withExpoBraintree2.withExpoBraintreeAppDelegate)(config, props);
config = (0, _withExpoBraintree2.withBraintreeWrapperFile)(config, {
appDelegateLanguage: props?.appDelegateLanguage || 'swift'
});
config = (0, _withExpoBraintree2.withExpoBraintreePlist)(config);
config = (0, _withExpoBraintree2.withVenmoScheme)(config);
return config;
};
exports.withExpoBraintreePlugin = withExpoBraintreePlugin;
var _default = exports.default = (0, _configPlugins.createRunOncePlugin)(withExpoBraintreePlugin, pkg.name, pkg.version);
//# sourceMappingURL=withExpoBraintree.js.map