SDK Version: 49.0.13
Platforms: Android and iOS
I am looking for a way to have light and dark splash images, depending on the user’s default theme. I tried to reproduce with Snack but I couldn’t use any config file to prove it so here is a snippet :
"userInterfaceStyle": "automatic",
"ios": {
"splash": {
"backgroundColor": "#ffffff",
"image": "./assets/splash.png",
"resizeMode": "contain",
"dark": {
"backgroundColor": "#000000",
"image": "./assets/splash-dark.png",
"resizeMode": "contain"
}
}
}
I have also added this to the package.json file
“expo-system-ui”: “~2.4.0”,
Existing issues or informations :
-
I have tried as mentionned in the [app.json / app.config.js - Expo Documentation]
-
The same solution was mentionned in another topic
-
This feature request is still open and mentions similar issues/solutions : Dark Mode Splash Screen | Voters | Expo