Amila
Amila

Reputation: 243

How to load spash screen when app loading from background in react native expo

I'm using react native expo to build a app. I have faced a big problem right now. I want to load splash screen when app is loading from background. scenario,

  1. When I open app, it load splash screen, then go to home screen.

  2. Then use hardware back button to go to app background then again open app

Right now when I load app from background always show home screen before load splash screen

I try to kill the app when use hardware back button using `BackHandler.exitApp()` its not killing the app.

I want to load splash screen first and then go to home screen.

Can any body help me to fix this issue

Upvotes: 0

Views: 3046

Answers (1)

Nikhil Asrani
Nikhil Asrani

Reputation: 111

You can refer to the Expo Documentation on SplashScreens https://docs.expo.io/versions/latest/sdk/splash-screen/ and https://docs.expo.io/guides/splash-screens/. If these aren't as helpful, you should post a code snippet of your main App screen and the code which you used to integrate and hide the splash screen when the application loads.

Upvotes: 1

Related Questions