question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Start a new Bare project: $ expo init --template bare-minimum
  2. Install expo-splash-screen using $ expo install expo-splash-screen && cd ios && pod install
  3. Configure expo-splash-screen for iOS: https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios
  4. Run project on Simulator/Device using $ react-native run-ios

Expected Behavior

Splash screen should autohides when app finish loading.

Actual Behavior

  1. SplashScreen does not hides. Only works if add SplashScreen.hideAsync() on main component mount and according to README.md file on expo-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

https://github.com/rodrigorm/expo-splash-screen-issue-7564

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bbartheccommented, Apr 1, 2020

New bare workflow templates are already published so expo init --template bare-minimum will work with expo-splash-screen 🎉 To manually apply update:

  • please update react-native-unimodules in package.json to version ~0.9.0 and reinstall dependencies (yarn)
  • and in ios directory run pod install

Autohide should work fine after this package upgrade.

1reaction
bbartheccommented, Apr 1, 2020

@rodrigorm, I confirm that the problem exists - thank you for reporting it 💯 The solution is on the way! 🎉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found