-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.ts
57 lines (51 loc) · 1.18 KB
/
app.config.ts
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
50
51
52
53
54
55
56
57
import { ExpoConfig } from "expo/config";
import { config } from "dotenv";
import path from "path";
// TODO: use dotenv-safe to not have to cast existing values and make sure they exist
const env_file = path.join(__dirname, ".env");
const env = config({
path: env_file,
});
if (env.error) {
console.log("ENV FILE ERROR: ", env_file);
throw env.error;
}
export const expoConfig: ExpoConfig = {
scheme: "your-scheme",
name: "your-name",
slug: "your-slug",
version: "1.0.0",
orientation: "portrait",
icon: "./assets/images/icon.png",
userInterfaceStyle: "light",
splash: {
image: "./assets/images/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
assetBundlePatterns: ["**/*"],
ios: {
bundleIdentifier: "your.identifier",
supportsTablet: true,
},
android: {
package: "your.identifier",
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#ffffff",
},
intentFilters: [
{
action: "VIEW",
category: ["BROWSABLE", "DEFAULT"],
},
],
},
web: {
favicon: "./assets/favicon.png",
},
extra: {
...env.parsed,
},
};
export default expoConfig;