-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
35 lines (31 loc) · 1.1 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
import React, {useEffect} from 'react';
import SplashScreen from 'react-native-splash-screen';
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import {ThemeContextProvider} from './src/context/theme.context';
import {APIContextProvider} from './src/context/api.context';
import {CreateAccContextProvider} from './src/context/create.context';
import {TokenContextProvider} from './src/context/token.context';
import RootNavigator from './src/infrastructure/navigation';
import {store, persistor} from './src/redux/store';
const App: React.FC = () => {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<ThemeContextProvider>
<APIContextProvider>
<CreateAccContextProvider>
<TokenContextProvider>
<RootNavigator />
</TokenContextProvider>
</CreateAccContextProvider>
</APIContextProvider>
</ThemeContextProvider>
</PersistGate>
</Provider>
);
};
export default App;