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

Splash screen default opening before lib

Open willianferreiradev opened this issue 2 years ago • 12 comments

When starting the application, the default splash screen appears before the library splash.

What react-native-splash-screen version are you using? 3.3.0

What platform does your issue occur on? (Android/iOS/Both) Android

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue launch the app and see the two splash

Join a screenshot or video of the problem on the simulator or device?

https://user-images.githubusercontent.com/33581079/195143038-69d34210-2533-479d-a08f-8f670ace9197.mp4

willianferreiradev avatar Oct 11 '22 16:10 willianferreiradev

You may be testing this app on Android 12. Google provides a default splash screen. You can hide that splash screen by following these steps.

https://stackoverflow.com/questions/72003647/react-native-splash-screen-on-android-12

ponikar avatar Oct 12 '22 12:10 ponikar

same

Namnp1521 avatar Oct 16 '22 16:10 Namnp1521

I will make PR to fix this issue soon but in a meantime please try StackOverflow solution

ponikar avatar Oct 17 '22 14:10 ponikar

@ponikar StackOverflow solution is not working

NadeemKhanFh avatar Feb 16 '23 10:02 NadeemKhanFh

This library is not maintained by the library author anymore. You can use react-native-bootsplash it is using the native splash screen under the hood.

ponikar avatar Feb 17 '23 18:02 ponikar

I was going to raise PR but as android has introduced native splash in android 12 it wasn't worth spending time raising PR. You have to eventually use the native splash screen.

ponikar avatar Feb 17 '23 18:02 ponikar

thanks for response @ponikar

NadeemKhanFh avatar Feb 17 '23 21:02 NadeemKhanFh

@ponikar StackOverflow solution is not working

@NadeemKhanFh At first I was not able to make the StackOverflow solution work, but that was because I was trying to recreate my splash screen on the Starting style. Then I tried the exact same Theme.App.Starting style indicated there, and with every other step already implemented, it worked. Don't know if this is your case, but hope it helps.

hdjvieira avatar Feb 28 '23 20:02 hdjvieira

did this issue finish?

MASAKASUNO1 avatar Apr 06 '23 02:04 MASAKASUNO1

@MASAKASUNO1 @willianferreiradev @ponikar

Please refer below solution for the work around - it is working for me

https://github.com/crazycodeboy/react-native-splash-screen/issues/613#issuecomment-1538231552

musthu1837 avatar Jul 30 '23 16:07 musthu1837

@MASAKASUNO1 @willianferreiradev @ponikar

Please refer below solution for the work around - it is working for me

#613 (comment)

this is not working for android 8 version, app is not opening at all. did your app is working for android 8 as well @musthu1837 ? can you share your styles.xml and steps you did!

chaitanya71998 avatar Aug 04 '23 04:08 chaitanya71998

Put the below line in your android/app/res/value/style.xml file. it's worked for me

<item name="android:windowIsTranslucent">true</item> -->

DarshanSavaliyaGitHub avatar Jul 08 '24 06:07 DarshanSavaliyaGitHub