forked from LucasGarcez/TVmaze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
27 lines (22 loc) · 767 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
25
26
27
import 'react-native-gesture-handler';
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {QueryClient, QueryClientProvider} from 'react-query';
import {Router} from './src/router/Router';
import {FavoriteProvider} from './src/contexts/Favorite';
import {initializeStorage} from 'src/services/storage/storageService';
import {mmkvStorage} from 'src/services/storage/mmkvStorage';
const queryClient = new QueryClient();
initializeStorage(mmkvStorage);
const App = () => {
return (
<FavoriteProvider>
<QueryClientProvider client={queryClient}>
<NavigationContainer>
<Router />
</NavigationContainer>
</QueryClientProvider>
</FavoriteProvider>
);
};
export default App;