Open pokhiii opened 5 years ago
Oh, I got it. Actually after loading the background_splash.xml
it is loading layout/lauch_screen.xml
and hangs in there. I don't want this. I want my react native app (login page) to come up after the splash screen.
same issue, any solution here?
Oh, I got it. Actually after loading the
background_splash.xml
it is loadinglayout/lauch_screen.xml
and hangs in there. I don't want this. I want my react native app (login page) to come up after the splash screen.
@abhishek-pokhriyal check the name of xml in layout folder launch_screen.xml 'n' is missing and this doesnt work if the ife name is worng
same issue, any solution here?
Guys check for following
_launchscreen.xml is the name of xml that is added in the layout folder (name matters)
Layout folder is present in the app\src\main\res\
Make shur u linked react-native-splash-screen else use npx react-native link react-native-splash-screen
Don't forget to add <color name="primary_dark">#0191FE</color>
in colors.xml present in \app\src\main\res\values
I've tried to follow your tutorial as closely as possible but the SplashScreen is not hiding on my Android device.
I've put
SplashScreen.hide()
in mycomponentDidMount()
function. The SplashScreen is working fine on my iOS device.