-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
24 lines (22 loc) · 879 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react'
import { Provider } from 'react-redux'
import { ThemeProvider } from 'styled-components/native' // eslint-disable-line import/no-extraneous-dependencies
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'
import theme from './src/styles/baseTheme'
enableScreens()
export default function App(): React.ReactElement {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ThemeProvider theme={theme}>
<StatusBar hidden />
<MainNavigation />
</ThemeProvider>
</PersistGate>
</Provider>
)
}