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.

Flash of white LaunchScreen.xib after splash screen (iOS)

See original GitHub issue

I’m seeing the standard white screen (LaunchScreen.xib) displayed after my splash screen for a second or two on production builds, this is the one with the app name and the “Powered by React Native” label below. We don’t want this displayed at all, and it never used to be but I think came in after upgrading to RN 0.59.10.

The building for production advice hasn’t changed and still says:

As your App Bundle grows in size, you may start to see a blank screen flash between your splash screen and the display of your root application view. If this is the case, you can add the following code to AppDelegate.m in order to keep your splash screen displayed during the transition.

// Place this code after “[self.window makeKeyAndVisible]” and before “return YES;” UIView* launchScreenView = [[[NSBundle mainBundle] loadNibNamed:@“LaunchScreen” owner:self options:nil] objectAtIndex:0]; launchScreenView.frame = self.window.bounds; rootView.loadingView = launchScreenView;

So we still do this. Is this the same “blank” screen as I’m seeing? Is a change needed here? Should it still work?

React Native version:

~/ccf * PHASE5 > react-native info
info
  React Native Environment Info:
    System:
      OS: macOS 10.14.6
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 74.38 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.5.0 - /usr/local/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.10.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 23.0.2, 25.0.0, 25.0.1, 25.0.2, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.2, 28.0.3
        System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: ^0.59.10 => 0.59.10
    npmGlobalPackages:
      create-react-native-typescript-app: 1.2.0
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7
      react-native-html-to-pdf: 0.7.0
      react-native-log-ios: 1.0.1
      react-native-rename: 2.2.2
      react-native-spinkit: 1.3.0

Steps To Reproduce

  1. Do a production build on an app with splash screens (as generated by generator-rn-toolbox)
  2. Deploy to iOS device and start it up, see the splash screen quickly replaced by white “Powered by React Native” screen for a few seconds, then app.

Describe what you expected to happen:

  • splash screen should stay up until app ready.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MingyuJeoncommented, Dec 12, 2019

@maxowy, it doesn’t work in my case.

"react": "16.9.0",
"react-native": "0.61.5"
0reactions
stale[bot]commented, Apr 25, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native white flash after splash screen on iOS
I fixed it using react-native-splash-screen and it works beautifully! Just used it exactly as described!
Read more >
How to fix the initial white flash in your React Native app
A simple solution that might work for you is just setting a different backgroundColor on the rootView . But in our situation we...
Read more >
Launch Screen Image not Updating!!! | Apple Developer Forums
xib and in the update I want to change the Launch screen image. If I try to use the same xib with different...
Read more >
[Solved]-Is iOS app Launch Screen (splash screen) a must?
An iOS app must have a splash screen according to Apple documentation. Without a splash screen, Apple will reject your app. But you...
Read more >
expo-splash-screen - npm
To achieve native splash screen (in iOS ecosystem it's called LaunchScreen ) behavior, you have to provide either a SplashScreen.storyboard file ...
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