-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Splash screen jumps on initial load (android prebuild) #21036
Comments
I have encountered this, too. |
I have the same issue :( |
Same issue here |
Same here. |
I am also experiencing this issue and is very prominent on a "real world" app, I also assumed this has to do with the status bar but yet to have the time to investigate and test properly but good to know from @pleopardi I may be wasting my time on that! An expo sdk fix would be preferred |
From what I read in other issues, it's probably some configuration to add in styles.xml, but I couldn't figure it out yet. The "jump" happens the moment the status bar is displayed while the splash screen is still visible. |
This solution worked for me: I removed the expo-status-bar from my project and I added the following properties to app.json
|
Same here, hope this gets fixed soon!! |
This is a good solution but makes the statusbar semi-transparent. |
the same issue happens here and I can't make the status bar to transparent even set the background color to #00000000.. |
Are there any solutions to this other than uninstalling the expo-status-bar package? |
@TheEndurance We followed this solution above and it seems to have worked. The status bar on Android appears a bit different, but the splash screen logo no longer jumps and we didn't uninstall anything. |
Is anyone else having trouble uninstalling Our expo app is inside an Nx monorepo and I've:
And I'm still seeing this when I try to build android: |
@techgerm Maybe something else is installing it as a dependency. Can you show us the output of the following command:
|
related: #28528 |
Because expo-router is used,i can't remove expo-status-bar; Are there any other good solutions? The causes of startup graph jitter are: The easiest way is not to call SplashScreen.preventAutoHideAsync, is there any other component or method to delay the start screen? |
Summary
moving this from expo/router#240
when moving to prebuild (
npx expo prebuild
) from a fresh install (npx create-react-native-app -t with-router
) the splash screen will jump up for one frame on android during app load.you can slow the following video frame-by-frame to see what i mean:
CleanShot.2023-01-31.at.14.22.06.mp4
the two frames where the jump occurs (i've drawn a redline to highlight the difference in position):
while it is hard to catch this with the naked eye in this demo, the jump is much more prominent in our real-world app that takes a little longer to load.
i'm not entirely sure if this is a router issue or more generic expo issue so happy to move it to the correct place if there is somewhere more suitable.
What platform(s) does this occur on?
Android
Environment
Minimal reproducible example
https://github.com/jjenzz/expo-splash-jump
The text was updated successfully, but these errors were encountered: