zoontek / react-native-bootsplash

🚀 Show a splash screen during app startup. Hide it when you are ready.
MIT License
3.73k stars 256 forks source link

Option to "Show" Splash Screen #455

Open alexborton opened 1 year ago

alexborton commented 1 year ago

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

zoontek commented 1 year ago

Hello 👋

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

viLeeKorn commented 1 year ago

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

zoontek commented 1 year ago

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

Melekhin commented 1 year ago

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+

zoontek commented 1 year ago

@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.

Melekhin commented 1 year ago

@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)

zoontek commented 1 year ago

@Melekhin You can also create this package 🙂

a-eid commented 1 year ago

@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 ?

zoontek commented 1 year ago

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

Vadko commented 1 month ago

@zoontek any progress on library for different cover screens?

zoontek commented 1 month ago

@Vadko No, I gave up on this idea. A few companies reached me by email but after asking, none wanted to sponsor it.