-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Dark mode for splash screen #39
Comments
From Brent at Expo:
See: https://expo.canny.io/feature-requests/p/dark-mode-splash-screen |
Hello @watadarkstar, Would also like to pick this one up if that's okay? I have had a look but it looks like we cannot simply change the asset backgroundColor in app.json to #000 as the asset assets/images/splash.png has a static white background set. I have tried creating the a dark version of the splash.png myself but it looks a bit messy. Do you have the original woman meditating with blob background image on hand? Thanks |
Hey @frubesss I do! Here is a transparent version of the splash screen (just right click to save it). Try to keep the code as clean as possible. You should be able to configure it for dark mode using this: https://github.com/expo/expo-cli/blob/76b720688d635e588066e571df15d8f787d9fd87/packages/prebuild-config/src/plugins/unversioned/expo-splash-screen/getIosSplashConfig.ts#L17-L22 but its an undocumented feature of Expo so it will require some effort to figure out. |
Hi @watadarkstar, Apologies once again for this but I cannot come up with an optimal solution that I am happy with for this issue. The main sticking point I have is the quick flash of a white screen at the start while the application is bundling and the splash screen disappearing before the assets have loaded producing another quick white screen flash. I think we have two options in order of what I think is best:
One lead that worked well for option two was this example with an animated splash screen (https://github.com/expo/examples/tree/master/with-splash-screen). The main reason I don't want to go down this path though is as highlighted before that you are writing a fair amount of custom code for an expo managed application for a small feature that could possibly cause more pain than its worth. So yea, I would just wait for dark mode splash screens to be fully supported for managed expo applications. I have attached the splash image with the dark background if anyone else wants to have a go at this issue. |
@frubesss I recently upgraded the app from Expo SDK 42 to 44. I wonder if they have dark mode splash support now? It seems like we can do it via the plugin:
Source: Brent from Expo (https://expo.canny.io/feature-requests/p/dark-mode-splash-screen) |
I have a PR in WIP thats semi working but the navigation bar is white instead of a dark color in dark mode. Similar issue with the status bar: |
Steps to reproduce:
Expected behaviour:
Colors.gray900
#333333 in dark mode otherwise it should be whiteColors.gray975
#121212 in dark mode otherwise it should be whiteActual behaviour:
Background colour for splash screen is white
Smartphone (please complete the following information):
Screenshots/Recording:
The text was updated successfully, but these errors were encountered: