-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 ourterms of serviceand 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@pleopardiI 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? |
@TheEnduranceWe 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: |
@techgermMaybe 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? |
|
I have the same issue. It's especially annoying when app starts in dark mode, as the bar is still in light mode when it's visible. Then it disappears and splash screen shifts a bit. It's very noticeable. |
you can test it into other device |
The problem is that even if your command |
Any news on this? What is the current solution or fix? |
in my side,it's automatic working I don't how please check your network connection |
will it work for light and dark splash screens? |
this is a tricky problem to solve for in a generic way with the current way that layout is handled on android. we're working with@zoontekon moving towards recommending and defaulting toedge to edge layoutwhich will simplify this greatly. until then, thank you to folks in this thread for helping each other out! |
I tried this and it solved the issue for me for both light mode and dark mode. Not sure why it works also on dark mode to be honest, but I tested it for both Android and iOS and seems to work fine, so I won't dig more into it. Maybe it works only if the status bar has the same color as the app's background but that's fine for me. Thanks! |
So I had same problem today, and I found out on reddit, thatReanimatedhook cause it. example: |
I don't use that hook so that isn't the cause. Could you at least provide a link so that people who are willing to try it out can take a look for themselves. |
Yes of course here is thelink to the reddit |
Still on some Samsung mobiles, this clunky shaking happened even withe the previous fixes. It is something expo has to fix it.. We can not give the client a clunky app.. His brand stand on the splash screen.... But a jumping splash... No way |
I am having the same issue:/ I tried deleting expo status bar but it didn't work |
This is what I used to fix this issue I added a
I created this plugin in it's own file called
After making these changes, my splash screen stopped jumping when starting the app.. It needs a new build since the changes are on the app.json file I found the solution here and it explains why the issue is happening -https:// aronberezkin /posts/a-step-by-step-guide-to-writing-your-first-expo-config-plugin Goodluck I hope it helps |
You can addreact-native-edge-to-edgeto your project for enabling edge-to-edge display on Android. Paired withreact-native-bootsplash,it fixes this anoying jump issue. It will also work well with expo-splash-screen in Expo 52. |
Summary
moving this fromexpo/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 /jjenzz/expo-splash-jump
The text was updated successfully, but these errors were encountered: