expo-shopify-performance
Version:
Config plugin to setup @shopify/react-native-performance on prebuild
16 lines (15 loc) • 856 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const package_json_1 = require("../package.json");
const withShopifyPerformance_ios_1 = __importDefault(require("./withShopifyPerformance.ios"));
const config_plugins_1 = require("@expo/config-plugins");
const withShopifyPerformance_android_1 = __importDefault(require("./withShopifyPerformance.android"));
const withShopifyPerformance = (config) => {
config = (0, withShopifyPerformance_ios_1.default)(config);
config = (0, withShopifyPerformance_android_1.default)(config);
return config;
};
module.exports = (0, config_plugins_1.createRunOncePlugin)(withShopifyPerformance, 'withShopifyPerformance', package_json_1.version);