I have seen a lot of solutions using the react-native-splash-screen
library for react native projects.
Is there any way to implement splash screen in android(java) for a react native project without using the react-native-splash-screen
library or without any external libraries?
2
Answers
You can do that by creating a new java class with extends
AppCompatActivity
class. Then you need to modify the manifest XML file also by including this new activity. This Splash screen code need to be inside ofonCreate
method.You can use setTimeout to display your Splash screen and then navigate to either Login or Homescreen as per your APP Navigation Routes. For Example`