-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
36 lines (32 loc) · 1.15 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
// vendors
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
// components
import TabNavigator from './src/navigation';
import ThemeContext from './src/context/ThemeContext/Theme.context';
import { persistor, store } from './src/store';
import PushNotificationListener from './src/features/notifications/PushNotificationListener/PushNotificationListener';
import ToastInstance from './src/components/Toast/Toast';
import AppStartUp from './src/features/AppStartUp/AppStartUp';
// helpers
import { navigationRef } from './src/helpers/navigation.helpers';
function App(): JSX.Element {
return (
<PersistGate loading={null} persistor={persistor}>
<Provider store={store}>
<ThemeContext>
<NavigationContainer ref={navigationRef}>
<AppStartUp>
<PushNotificationListener />
<TabNavigator />
</AppStartUp>
<ToastInstance />
</NavigationContainer>
</ThemeContext>
</Provider>
</PersistGate>
);
}
export default App;