-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
35 lines (30 loc) · 937 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
28
29
30
31
32
33
34
35
import React from 'react';
import { useNavigationMounting } from 'navigation/RootNavigation';
import 'localization';
import Router from 'navigation/Router';
import { enableScreens } from 'react-native-screens';
import { FileLogger } from 'react-native-file-logger';
import { Provider } from 'react-redux';
import store from './src/store';
import { QueryClient, QueryClientProvider } from 'react-query';
import { theme } from 'theme';
import { ThemeProvider } from 'styled-components';
enableScreens();
FileLogger.configure({
maximumFileSize: 1024 * 1024 * 5, // 5MB,
maximumNumberOfFiles: 3,
});
const queryClient = new QueryClient();
const App = () => {
useNavigationMounting();
return (
<Provider store={store}>
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={theme}>
<Router />
</ThemeProvider>
</QueryClientProvider>
</Provider>
);
};
export default App;