react-native-bootsplash icon indicating copy to clipboard operation
react-native-bootsplash copied to clipboard

Option to "Show" Splash Screen

Open alexborton opened this issue 1 year ago • 11 comments

Why it is needed?

Given a custom CodePush flow that leads to users restarting the app before they continue their journey, it would be really nice to have to option to "show" the splash screen at a point in time (and hide it again on request). This would hopefully cover the flash of "root view" that occurs between JS reloads when restarting a foreground app.

Possible implementation

No response

Code sample

No response

alexborton avatar May 22 '23 15:05 alexborton

Hello 👋

I recommend you to perform a quick search: https://github.com/zoontek/react-native-bootsplash/issues?q=show+label%3A%22feature+request%22

zoontek avatar May 22 '23 15:05 zoontek

@zoontek could you provide the access for me to the link as well?

viLeeKorn avatar Jun 06 '23 12:06 viLeeKorn

@viLeeKorn I fixed it. It's just a link to the existing, similar issues where you can easily find more infos.

zoontek avatar Jun 06 '23 12:06 zoontek

I fixed it. It's just a link to the existing, similar issues where you can easily find more infos.

Hello! So at the moment is there an option to manually show the splash screen?

React Native 70+

Melekhin avatar Jul 18 '23 17:07 Melekhin

@Melekhin Hello! No. But I think this is not a good idea anyway.

A way better solution would be a package allowing you to render another react native app root inside a controllable UIViewController / DialogFragment. This way, people would be able to render whatever they want (ex: a lock illustration when the app is in multitask because your app has sensitive data, a screen telling the user that you perform an OTA when using Codepush, etc).

Just using the splash screen for that would sure works, but it's IMHO a poor solution.

zoontek avatar Jul 18 '23 19:07 zoontek

@zoontek

Your suggestion sounds very sensible, and will satisfy all the tasks users face, but unfortunately there is no such package yet, a simple solution is to show at least just a normal boot static screen at startup....

By the way, the problem with code push and displaying a picture is also relevant to me.

If someone will start to do such a work on the package, perhaps joined the work on it myself, if I can help in any way)

Melekhin avatar Jul 19 '23 03:07 Melekhin

@Melekhin You can also create this package 🙂

zoontek avatar Jul 19 '23 07:07 zoontek

@zoontek if you use expo, I believe expo-splash-screen does this by default, whenever you reload the app ( in cases like OTA or RTL / LTR layout changes ) it displays the splash screen.

@zoontek is it technically possible for bootsplash to support this default behavior as well ?

a-eid avatar Aug 25 '23 10:08 a-eid

@a-eid Check the "What's next?" section here: https://github.com/zoontek/react-native-bootsplash/pull/475

zoontek avatar Aug 25 '23 14:08 zoontek