question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

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: splash-with-alert

Removing the alert completely: splash-without-alert

Delaying the alert until after the splash is hidden: splash-with-delayed-alert

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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
zoontekcommented, Nov 13, 2020

@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#L180

This 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

1reaction
zoontekcommented, Nov 14, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

RNBootSplash.hide() does not hide the splash screen on iOS
6) package to show splash screen in my React Native (0.63.2) app. It works on Android, however, it doesn't on iOS (physical iPhone...
Read more >
Rnbootsplash.Hide() Does Not Hide The Splash ... - ADocLib
Can not hide the splash screen Showing a native iOS alert before bootsplash hides prevents future hides from working import com.zoontek.rnbootsplash.
Read more >
react-native-bootsplash - Bountysource
This crash occurs when a Pixel user backgrounds the application before the splashscreen finishes & the hide method can be invoked.
Read more >
ā€œHide Alertsā€ keeps coming back! - Apple Support Communities
My brother has an iPhone X and no matter how many times he disables ā€œHide Alerts,ā€ they keep coming back! He does not...
Read more >
Chromium Command Line Switches Cheat Sheet - Kapeli
Allows Web Push notifications that do not show a notification. ... Hides notifications that are irrelevant to Chrome OS device factory testing,Ā ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found