react-native-splash-screen-demo
react-native-splash-screen-demo copied to clipboard
Splash screen does not hide on Android
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 my componentDidMount()
function.
The SplashScreen is working fine on my iOS device.
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
-
launch_screen.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