expo-splash-screen does not autohides in iOS
See original GitHub issue🐛 Bug Report
Environment
$ yarn expo diagnostics
yarn run v1.22.4
$ /private/tmp/myproject/node_modules/.bin/expo diagnostics
Expo CLI 3.17.2 environment info:
System:
OS: macOS 10.15.4
Shell: 5.0.16 - /usr/local/bin/bash
Binaries:
Node: 13.11.0 - /var/folders/r0/t7_njzzn0zn9ysy82nryy51w0000gq/T/yarn--1585715691174-0.17658697551986946/node
Yarn: 1.22.4 - /var/folders/r0/t7_njzzn0zn9ysy82nryy51w0000gq/T/yarn--1585715691174-0.17658697551986946/yarn
npm: 6.13.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6241897
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
expo: ~37.0.3 => 37.0.3
react: ~16.9.0 => 16.9.0
react-native: ~0.61.4 => 0.61.5
npmGlobalPackages:
expo-cli: 3.17.2
Done in 3.59s.
Target: iOS Standalone (Tested on Simulator)
Steps to Reproduce
- Start a new Bare project:
$ expo init --template bare-minimum - Install
expo-splash-screenusing$ expo install expo-splash-screen && cd ios && pod install - Configure
expo-splash-screenfor iOS: https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios - Run project on Simulator/Device using
$ react-native run-ios
Expected Behavior
Splash screen should autohides when app finish loading.
Actual Behavior
- SplashScreen does not hides. Only works if add
SplashScreen.hideAsync()on main component mount and according toREADME.mdfile onexpo-splash-scrren:
“The native splash screen that is controlled via this module autohides once the ReactNative-controlled view hierarchy is mounted. This means that when your app first renders view component, the native splash screen will hide.” https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-api
Reproducible Demo
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Expo splash screen gets hidden even if ...
I was simple ignoring it, but what I have experience is the error about being no able to hide a splash screen. Maybe...
Read more >Splash screen prevent from hiding after ejecting expo
Recently I have ejected my project from expo to dare and do all the necessary things like pod install and all.
Read more >SplashScreen
The SplashScreen module from the expo-splash-screen library is used to tell the splash screen to remain visible until it has been explicitly told...
Read more >Splash screen always auto hiding on iOS
It seems like the splash screen is being hidden automatically whenever the deviceready event fires. I've triple-checked my iOS config.xml in ...
Read more >expo-splash-screen | Yarn - Package Manager
Provides a module to allow keeping the native Splash Screen visible until you choose to hide it. react-native, expo, expo-splash-screen, splash-screen. readme ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

New
bare workflowtemplates are already published soexpo init --template bare-minimumwill work withexpo-splash-screen🎉 To manually apply update:react-native-unimodulesinpackage.jsonto version~0.9.0and reinstall dependencies (yarn)iosdirectory runpod installAutohide should work fine after this package upgrade.
@rodrigorm, I confirm that the problem exists - thank you for reporting it 💯 The solution is on the way! 🎉