Skip to content
Advertisement

React Native Android Splash Screen

I’m trying to build a splash screen for an Android RN app. I’ve followed the steps described here : https://www.bignerdranch.com/blog/splash-screens-the-right-way/

Unfortunately, when trying to launch my app, the build is successful but the app crashes saying:

JavaScript

Does any one know where this could come from ?

I have the following code :

SplashScreen.java

JavaScript

MainActivity.java

JavaScript

AndroidManifest.xml

JavaScript

Advertisement

Answer

OK, well it works now. I just changed the android:name to android:name=".MainActivity" in AndroidManifest.xml

It works but I don’t understand why it shows the splash screen though…

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement