React-native-splash-screen: Black Screen - Android

Created on 15 Nov 2018  Â·  1Comment  Â·  Source: crazycodeboy/react-native-splash-screen

Black screen showing instead of splash background drawable.

Most helpful comment

Not sure if it's related, but I had the same issue. I realised that my MainActivity had the following code:

public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
    SplashScreen.show(this);
    super.onCreate(savedInstanceState, persistentState);
}

instead of

public void onCreate(Bundle savedInstanceState) {
    SplashScreen.show(this);
    super.onCreate(savedInstanceState);
}

I recompiled the APK and it worked after that.

>All comments

Not sure if it's related, but I had the same issue. I realised that my MainActivity had the following code:

public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
    SplashScreen.show(this);
    super.onCreate(savedInstanceState, persistentState);
}

instead of

public void onCreate(Bundle savedInstanceState) {
    SplashScreen.show(this);
    super.onCreate(savedInstanceState);
}

I recompiled the APK and it worked after that.

Was this page helpful?
0 / 5 - 0 ratings