-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
49 lines (49 loc) · 1.38 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
46
47
48
49
module.exports = ({ config }) => {
const IS_DEV = process.env.APP_VARIANT === "development";
const IS_STAGING = process.env.APP_VARIANT === "staging";
return {
name: IS_DEV || IS_STAGING ? "RNExpoThree (Dev)" : "RNExpoThree",
slug: "rn-expo-three",
version: config.version,
orientation: "portrait",
icon: "./assets/images/icon.png",
scheme: "rn-expo-three",
userInterfaceStyle: "automatic",
splash: {
resizeMode: "contain",
backgroundColor: "#FFFFFF",
},
assetBundlePatterns: ["**/*"],
ios: {
buildNumber: config.ios.buildNumber,
supportsTablet: true,
bundleIdentifier:
IS_DEV || IS_STAGING
? "com.example.rnexpothree.dev"
: "com.example.rnexpothree",
},
android: {
versionCode: parseInt(config.android.versionCode, 10),
icon: "./assets/images/adaptive-icon.png",
backgroundColor: "#FFFFFF",
splash: {
resizeMode: "contain",
backgroundColor: "#FFFFFF",
},
permissions: ["android.permission.ACCESS_NETWORK_STATE"],
package:
IS_DEV || IS_STAGING
? "com.example.rnexpothree.dev"
: "com.example.rnexpothree",
},
web: {
bundler: "metro",
output: "static",
favicon: "./assets/images/favicon.png",
},
plugins: ["expo-router"],
experiments: {
typedRoutes: true,
},
};
};