-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathindex.js
More file actions
38 lines (34 loc) · 1.03 KB
/
index.js
File metadata and controls
38 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// @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;