Home > Software design >  Android Splash Screen App Icon won't disappear after loading - React Native
Android Splash Screen App Icon won't disappear after loading - React Native

Time:10-26

I followed this tutorial enter image description here

I am a beginner in React Native, are there any some sort of workaround on this? How do I fix it?

CodePudding user response:

If I understand it correct it is even mentioned in the tutorial you followed:

  1. Don’t forget to set background for your root view. This need because Splash screen is always under your js views. So if not set background it will be visible.

So in your js code try to set a background color on the top-level view.

CodePudding user response:

You have only one Activity. I would create a new Activity which shows the Image as SplashScreen. You can load this as Launcher/Main (set the Intent in your Manifest) and go after 2 seconds to the MainActivity. If you need help, feel free to write me.

  • Related