-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
77 lines (71 loc) · 1.92 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {NativeBaseProvider, extendTheme} from 'native-base';
import {NotificationProvider} from './src/Providers/NotificationProvider';
import {AuthProvider} from './src/Providers/AuthProvider';
import RootApp from './src/RootApp';
import {InternetConnectionProvider} from './src/Providers/InternetConnectionProvider';
import {OrientationProvider} from './src/Providers/OrientationContext';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {useEffect} from 'react';
const queryClient = new QueryClient();
const theme = extendTheme({
// colors: {
// primary: {
// 50: '#FFFFFF',
// 100: '#F7F7FF',
// 200: '#D8D8FF',
// 300: '#B9B9FF',
// 400: '#9A9AFF',
// 500: '#7B7BFF',
// 600: '#7B7BFE',
// 700: '#5D5DFF',
// 800: '#3E3EFF',
// 900: '#1F1FFF',
// },
// success: {
// 600: '#12B718',
// },
// },
// fontSizes: {
// sm: 11,
// md: 14,
// lg: 21,
// },
// fonts: {
// heading: 'IBMPlexSans-Medium',
// body: 'IBMPlexSans-Regular',
// mono: 'IBMPlexMono-Regular',
// },
// letterSpacings: {
// md: 0.8,
// },
});
function App(): JSX.Element {
useEffect(() => {
queryClient.clear();
}, []);
return (
<NotificationProvider>
<InternetConnectionProvider>
<AuthProvider>
<QueryClientProvider client={queryClient}>
<OrientationProvider>
<NativeBaseProvider theme={theme}>
<SafeAreaProvider>
<RootApp />
</SafeAreaProvider>
</NativeBaseProvider>
</OrientationProvider>
</QueryClientProvider>
</AuthProvider>
</InternetConnectionProvider>
</NotificationProvider>
);
}
export default App;