-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
45 lines (44 loc) · 1.25 KB
/
app.config.js
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
39
40
41
42
43
44
45
const brandConfig = require("./current-brand/config.json");
module.exports = () => {
return {
name: brandConfig.belowIconName,
slug: brandConfig.expoSlug,
userInterfaceStyle: "automatic",
version: "1.0.0",
orientation: "portrait",
icon: "./current-brand/build-assets/icon.png",
scheme: "myapp",
userInterfaceStyle: "automatic",
splash: {
image: "./current-brand/build-assets/splash.png",
resizeMode: "cover",
backgroundColor: brandConfig.brandColor,
},
ios: {
supportsTablet: true,
bundleIdentifier: brandConfig.iosBundleIdentifier,
},
android: {
adaptiveIcon: {
foregroundImage: "./current-brand/build-assets/adaptive-icon.png",
backgroundColor: brandConfig.androidAdaptiveIconBackgroundColor,
},
package: brandConfig.androidPackage,
},
web: {
bundler: "metro",
output: "static",
favicon: "./current-brand/build-assets/favicon.png",
},
plugins: ["expo-router"],
experiments: {
typedRoutes: true,
},
extra: {
eas: {
// 'undefined' tells `eas init` that a project ID isn't set yet, so it's safe to define one
projectId: brandConfig.easProjectId || undefined,
},
},
};
};