UNPKG

@embrace-io/react-native

Version:
16 lines (15 loc) 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_plugins_1 = require("@expo/config-plugins"); const withIosEmbrace_1 = require("./withIosEmbrace"); const withAndroidEmbrace_1 = require("./withAndroidEmbrace"); const withEmbrace = (config, props) => { if (!(props.iOSAppId && props.androidAppId && props.apiToken)) { throw new Error("The following props are required when using the Embrace Expo config plug: iOSAppId, androidAppId, apiToken"); } return (0, config_plugins_1.withPlugins)(config, [ [withIosEmbrace_1.default, props], [withAndroidEmbrace_1.default, props], ]); }; exports.default = withEmbrace;