react-native-expo-braintree
Version:
React native and expo wrapper around braintree sdk fro android and ios
16 lines • 831 B
JavaScript
import { createRunOncePlugin } from '@expo/config-plugins';
import { withExpoBraintreeAndroid } from './withExpoBraintree.android';
import { withExpoBraintreeAppDelegate, withExpoBraintreePlist, withSwiftBraintreeWrapperFile, withVenmoScheme } from './withExpoBraintree.ios';
const pkg = require('react-native-expo-braintree/package.json');
export const withExpoBraintreePlugin = (expoConfig, props) => {
// Android mods
let config = withExpoBraintreeAndroid(expoConfig, props);
// IOS mods
config = withSwiftBraintreeWrapperFile(config);
config = withExpoBraintreeAppDelegate(config, props);
config = withExpoBraintreePlist(config);
config = withVenmoScheme(config);
return config;
};
export default createRunOncePlugin(withExpoBraintreePlugin, pkg.name, pkg.version);
//# sourceMappingURL=withExpoBraintree.js.map