From 17846093d50711274f71ddb5e795989eb1c058ae Mon Sep 17 00:00:00 2001 From: juliusmarminge Date: Sat, 23 Nov 2024 23:34:17 +0100 Subject: [PATCH] update splash config --- apps/expo/app.config.ts | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/apps/expo/app.config.ts b/apps/expo/app.config.ts index 525e6e2cd..3b53df8f0 100644 --- a/apps/expo/app.config.ts +++ b/apps/expo/app.config.ts @@ -9,11 +9,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({ orientation: "portrait", icon: "./assets/icon.png", userInterfaceStyle: "automatic", - splash: { - image: "./assets/icon.png", - resizeMode: "contain", - backgroundColor: "#1F104A", - }, updates: { fallbackToCacheTimeout: 0, }, @@ -21,6 +16,11 @@ export default ({ config }: ConfigContext): ExpoConfig => ({ ios: { bundleIdentifier: "your.bundle.identifier", supportsTablet: true, + icon: { + light: "./assets/icon.png", + dark: "./assets/icon.png", + // tinted: "", + }, }, android: { package: "your.bundle.identifier", @@ -38,5 +38,19 @@ export default ({ config }: ConfigContext): ExpoConfig => ({ tsconfigPaths: true, typedRoutes: true, }, - plugins: ["expo-router", "expo-secure-store"], + plugins: [ + "expo-router", + "expo-secure-store", + [ + "expo-splash-screen", + { + backgroundColor: "#1F104A", + image: "./assets/icon.png", + // dark: { + // backgroundColor: "#1F104A", + // image: "./assets/icon.png", + // }, + }, + ], + ], });