Closed dvijeniii05 closed 2 months ago
NavigationContainer
onReady
is fired too soon by react-navigation
.
Ideally, fire hide in your screen main View / ScrollView onLayout.
@zoontek - are you suggesting just to call it within useEffect of the main (fist) Screen?
No, on layout event of this first screen.
@zoontek - thanks for the suggestion, but the issue is still present even after moving bootsplash.hide() into useLayoutEffect hook on the Screen level :( :
useLayoutEffect(() => {
BootSplash.hide();
}, []);
Must say tho, the splash screen does disappear on a later stage compared to the previous implementation, but the grey fish is still there. I am also getting a "Double splash screen" warning on my pre-launch report in Play Store. Not sure wether this is related tho.
Ohh, I think I misunderstood your suggestion, and after moving the .hide() method into actual onLayout prop event of the View container, the issue seemed to be gone :)
Yep, issue is gone.
Before submitting a new issue
Bug summary
Fro some reason, recently noticed that on Physical devices, there is a "Grey splash" for 1 second displayed after SplashScreen. Only on Android.
To confirm, I am calling a hide splash screen method on NavigationContainer ready like so:
Video attached below:
https://github.com/user-attachments/assets/a1a74164-600b-4b18-8628-26a96cfedcdc
Library version
5.1.0
Environment info
Steps to reproduce
Reproducible sample code