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.

Getting white screen after splash screen

See original GitHub issue

I have followed all of the steps and below is my MainActivity.java file:

package com.test;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import org.devio.rn.splashscreen.SplashScreen;

public class MainActivity extends ReactActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        SplashScreen.show(this);  // here
        super.onCreate(savedInstanceState);
    }
    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
    @Override
    protected String getMainComponentName() {
        return "test";
    }
}

Still i am getting white screen after splash screen

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:7

github_iconTop GitHub Comments

13reactions
aditya27devcommented, May 11, 2018

@julianoabrs solved by following these steps… remove react-native-splash-screen

https://android.jlelse.eu/change-splash-screen-in-react-native-android-app-d3f99ac1ebd1

10reactions
daemswibowocommented, Sep 20, 2020

@Allyday answer is correct. Thanks!

for anyone who is currently experiencing the same thing and use react navigation maybe this can help you a little:

// ... your other imports
import { NavigationContainer } from '@react-navigation/native';
import SplashScreen from 'react-native-splash-screen';

const App = () => {
     // Check when react navigation is ready
    const onNavigationReady = () => {
        SplashScreen.hide(); // just hide the splash screen after navigation ready
    }

    return (
        <NavigationContainer onReady={onNavigationReady}>
             ...
        </NavigationContainer>
    );
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why white screen stuck after splash screen in Ionic 4?
So solution is to request permissions after splashScreen.hide() after timeout delay equal to fade out timeout. example: config.xml <preference ...
Read more >
White screen after splash and before my home ... - Ionic Forum
Hey, I upgraded my old cordova app to capacitor app, everything is working fine but I am seeing a white screen between splashscreen...
Read more >
EAS - white screen after splash-screen in production mode on ...
Everything should be fine in production. There should be a white screen after the splashscreen, which might be very quick in a blank...
Read more >
[SOLVED] White screen after splash screen - Questions
Hi. After splash screen loads, a white screen appears in app. I used chrome to inspect error but there is no error.
Read more >
How to remove the white screen just before the splash screen ...
We can get rid of the delay and the empty white screen by adding an additional splash activity. Additional steps for android. Create...
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