kanzitelli / rnn-screens

🃏 Predictable Navigation for React Native.
MIT License
27 stars 3 forks source link

How to implement a loading screen or swap root? #5

Closed lanyusan closed 2 years ago

lanyusan commented 2 years ago

I need to implement a loading screen. There is a long issue in rnn-starter about splash screen. It seems it wouldn't come for a while.

I am thinking of using the technique of swapping root. It is not very clear from doc.

Is there a way to do so with rnn-screens without using react native navigation directly?

kanzitelli commented 2 years ago

hey @lanyusan! it took me a while to respond, been busy these days. I have just release v16.0.0 of rnn-starter where you can take advantage of splash screen! but yeah, I've used that technique a few times. what I've also done is showing overlay with loading progress after first screen is shown. So I'm going to close the issue as splash screen is released and rnn-screens will be soon replaced with rn-navio.