-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Flickering in splash screen on iOS #30729
Comments
hey there! what you are seeing is the following:
we aren't actually showing the splash screen for the app outside of the initial launch, the flickering (splash -> black background -> your app) is the app loading. cc @alanjhughes to verify that we display splash appropriately in expo-dev-client in the sdk 52 changes |
Yes, and this only happens after |
@johnsiah - this shouldn't impact any production use case, so we aren't prioritizing it at the moment, but @alanjhughes will verify that it will be resolved by sdk 52 |
@brentvatne got it. By the way, we also saw this reproducible in the production app when we built the production profile. Exactly the same as the demo video display above. |
@johnsiah - can you elaborate on what you mean by that? in #30729 (comment) i mentioned that the splash screen shows as expected on the initial app launch, it just doesn't show when you reload within expo-dev-client. if your splash screen is just hiding too early, you may need to delay hiding it manually and hide it when you know your app is ready. eg: https://docs.expo.dev/versions/latest/sdk/splash-screen/#usage |
@brentvatne Note that the bare expo project for testing this issue doesn't install the The reason for not adding More interesting is that when I build a release internal preview using the profile below, it should be building a release build but the same flickering is still there.
Pasting all my dependencies here for more clarity.
|
The same black flicker/flash is reproducible in production scenarios. Here's a minimal repro: https://github.com/matthieugicquel/bootsplash-black-flash The minimal setup to have the issue seems to be (I usually don't notice a black flicker with just this):
To make the black screen visible every time, you can add:
Another way to make the flicker more noticeable seems to be to add other packages that do some work during app init (eg @brentvatne Is there anything I can do to help debug/fix this? Additional info on tests I made:
Simulator.Screen.Recording.-.iPhone.15.-.2024-09-09.at.17.31.12.mp4 |
Summary
There's a flickering in the splash screen on IOS when the
expo-dev-client
package is added, if theexpo-dev-client
package is being removed then the issue is gone.Below is the reproduction of the issue on a new expo project using a development build.
Flickering.IOS.expo-dev-client.mp4
Managed or bare workflow?
managed
What platform(s) does this occur on?
iOS
Package versions
Environment
Reproducible demo
expo-dev-client
npm run ios
Stacktrace (if a crash is involved)
No response
The text was updated successfully, but these errors were encountered: