Showing a native iOS alert before bootsplash hides prevents future "hide"s from working
See original GitHub issueš» My environment
- react-native-bootsplash version: 2.2.4
- react-native version: 0.61.5
- Platform: iOS
- OS version: 13.x
- Device: iPhone (any)
- Simulator: yes + actual device
- Xcode version:Ā 11.6
šµļøāāļø Reproducing the issue
First, thank you so much for this library! Itās really been great to use.
Iāve just run into an issue where showing a native iOS alert (react-nativeās Alert.alert
) before hiding bootsplash (BootSplash.hide()
) prevents the splash from hiding correctly in the future (and also dismisses the Alert in the process).
Here are some screen recordings to illustrate the problem:
Showing an alert before the splash is hidden:
Removing the alert completely:
Delaying the alert until after the splash is hidden:
I havenāt yet verified behavior on Android.
It seems like this could be vaguely related to #100 and taken care of by the rewrite in 3.0, but Iām just speculating.
Here are the gifs attached as .mov files in case the gifs donāt come through properly: splash_recordings.zip
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:13 (6 by maintainers)
Top GitHub Comments
@sameterdem The current implementation correctly dismiss the splash screen
UIViewController
instance: https://github.com/zoontek/react-native-bootsplash/blob/3.0.0/ios/RNBootSplash.m#L180This issue seems related to the
Alert
module itself: https://github.com/facebook/react-native/commit/f319ff321c4b7c0929b99e3ebe7e1ce1fa50b34c#diff-56beca6ee071cdd162c269ce765ab12d5af8c8c0ca840bca1e9d1f59e9fab790 (read the commit description)It is not shipped yet, but will probably be in the
0.64
@a-eid It is. I released it this afternoon.
https://github.com/zoontek/react-native-bootsplash/releases/tag/3.0.0