DEV Community

Discussion on: How to add a splash screen to a React Native app - The easy way

Collapse
 
hrastnik profile image
Mateo Hrastnik

I use it to initialize the app and run stuff I need to do on app start.

For example it could look something like this:

async function initialize() {
  await loadFonts()
  const store = createReduxStore();
  await initializePushNotifications()
  ...
}

Enter fullscreen mode Exit fullscreen mode