Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash screen does not hide on Android #8

Open
pokhiii opened this issue Jan 19, 2019 · 4 comments
Open

Splash screen does not hide on Android #8

pokhiii opened this issue Jan 19, 2019 · 4 comments

Comments

@pokhiii
Copy link

pokhiii commented Jan 19, 2019

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
Copy link
Author

pokhiii commented Jan 19, 2019

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.

@nguyenvanphuc2203
Copy link

same issue, any solution here?

@rohit-dasamantharao
Copy link

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
Copy link

rohit-dasamantharao commented Nov 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants