UNPKG

react-native-test-app

Version:

react-native-test-app provides a test app for all supported platforms as a package

39 lines (34 loc) 1.05 kB
// @ts-check const { withMod } = require("@expo/config-plugins"); /** * @typedef {import("@expo/config-plugins").ExportedConfig} ExportedConfig * @typedef {import("@expo/config-plugins").Mod} Mod */ /** * Provides the `BridgeDelegate` file for modification. * @param {ExportedConfig} config Exported config * @param {Mod} action Method to run on the mod when the config is compiled * @returns {ExportedConfig} Modified config */ function withBridgeDelegate(config, action) { return withMod(config, { platform: "ios", mod: "bridgeDelegate", action, }); } /** * Provides the `SceneDelegate` file for modification. * @param {ExportedConfig} config Exported config * @param {Mod} action Method to run on the mod when the config is compiled * @returns {ExportedConfig} Modified config */ function withSceneDelegate(config, action) { return withMod(config, { platform: "ios", mod: "sceneDelegate", action, }); } exports.withBridgeDelegate = withBridgeDelegate; exports.withSceneDelegate = withSceneDelegate;