Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created May 2, 2021 19:28
Show Gist options
  • Save AllGistsEqual/13caa0f3eb8e0edbd2861efef6991aaf to your computer and use it in GitHub Desktop.
Save AllGistsEqual/13caa0f3eb8e0edbd2861efef6991aaf to your computer and use it in GitHub Desktop.
// File: App.tsx
import React from 'react'
import { Provider } from 'react-redux'
import { StatusBar } from 'expo-status-bar'
import { enableScreens } from 'react-native-screens'
import { PersistGate } from 'redux-persist/integration/react'
import store, { persistor } from './src/redux'
import MainNavigation from './src/routing/MainNavigation'
enableScreens()
export default function App(): React.ReactElement {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<StatusBar hidden />
<MainNavigation />
</PersistGate>
</Provider>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment