expo-splash-screen preventAutoHideAsync() seems to have no effect
Problem
TEMPORARY SOLUTION: The bug is in 0.27.6 - downgrade to 0.27.5 Minimal reproducible example https://github.com/jaworskimatt/splashscreentest What platform(s) does this occur on? iOS Where did you reproduce the issue? in Expo Go Summary Calling `SplashScreen.preventAutoHideAsync();` seems to have no effect on the app, the splash screen is automatically hidden. Steps to replicate: `npx create-expo-app@latest splashcreentest` to deploy a fresh app Edit `app/_layout.tsx` and comment out or delete `SplashScreen.hideAsync();` `npx expo start` Expected result: Since hideAsync() is not called, the splash screen should stay forever Actual result: The splash screen auto-hides anyway Environment [code block] Expo Doctor Diagnostics [code block]
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: expo-splash-screen preventAutoHideAsync() seems to have no effect
same in bare workflow in this example I prevent the splash screen from hiding with `SplashScreen.preventAutoHideAsync()` and add an 5s simulated promise. In meanwhile the splash screen hide and appears a black screen. It's expected to the splash screen appear while the promise is loaded. https://github.com/user-attachments/assets/64e87fc6-7495-45d3-9e1c-460465eddba8
Trust Score
5 verifications
- 1
same in bare workflow
in this example I prevent the splash screen from hiding with `SplashScreen.preventAutoHideAsync()` and add an 5s simulated promise. In meanwhile the splash screen hide and appears a black screen.
- 2
It's expected to the splash screen appear while the promise is loaded.
It's expected to the splash screen appear while the promise is loaded.
- 3
https://github.com/user-attachments/assets/64e87fc6-7495-45d3-9e1c-460465eddba8
https://github.com/user-attachments/assets/64e87fc6-7495-45d3-9e1c-460465eddba8
Validation
Resolved in expo/expo GitHub issue #31875. Community reactions: 10 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep