spencercarli / react-native-meteor-boilerplate

MIT License
628 stars 139 forks source link

Where to hide splash screen ? #69

Closed sabativi closed 7 years ago

sabativi commented 7 years ago

Hello,

I was wondering where do you guys put the splashscreen.hide() instructions inside this boilerplate. Because il the user was connected but killed the app, we want him to see only the loggedIn layout when he goes back. Because of reactivity and depending on network, when putting see on componentDidMount method in RNApp component, I see first the LoggedOut layout and then the the user is loggedIn by meteor so it goes automatically to the loggedIn layout.

Thanks for your tips

spencercarli commented 7 years ago

Hmm splashscreen.hide seems to be a cordova/phonepage thing, right?

I'm about to update the boilerplate to (hopefully) fix the issue you described!

sabativi commented 7 years ago

I am using https://github.com/crazycodeboy/react-native-splash-screen On Mon, 13 Feb 2017 at 22:46, Spencer Carli notifications@github.com wrote:

Hmm splashscreen.hide seems to be a cordova/phonepage thing, right?

I'm about to update the boilerplate to (hopefully) fix the issue you described!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spencercarli/react-native-meteor-boilerplate/issues/69#issuecomment-279532804, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP6E6qVI2vywhfFOn3OpR-CY_F8C21cks5rcM8fgaJpZM4L9wuN .