react-native-splash-screen-demo icon indicating copy to clipboard operation
react-native-splash-screen-demo copied to clipboard

Splash screen does not hide on Android

Open pokhiii opened this issue 6 years ago • 4 comments

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.

pokhiii avatar Jan 19 '19 14:01 pokhiii

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.

pokhiii avatar Jan 19 '19 17:01 pokhiii

same issue, any solution here?

nguyenvanphuc2203 avatar Oct 31 '19 07:10 nguyenvanphuc2203

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.

@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

rohit-dasamantharao avatar Nov 19 '21 20:11 rohit-dasamantharao

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

rohit-dasamantharao avatar Nov 19 '21 20:11 rohit-dasamantharao