-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
31 lines (29 loc) · 1.19 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
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { StatusBar } from 'expo-status-bar';
import React, { Suspense } from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import Loading from './src/components/Loading/Loading';
import { ColorProvider } from './src/hooks/useColors';
import { DatabaseProvider } from './src/hooks/useDB';
import NavContainer from './src/navigation/NavContainer';
const queryClient = new QueryClient();
function App() {
return (
<QueryClientProvider client={queryClient}>
<StatusBar style="auto" />
<DatabaseProvider>
<SafeAreaProvider>
<ColorProvider>
<Suspense fallback={<Loading />}>
<GestureHandlerRootView style={{ flex: 1 }}>
<NavContainer />
</GestureHandlerRootView>
</Suspense>
</ColorProvider>
</SafeAreaProvider>
</DatabaseProvider>
</QueryClientProvider>
);
}
export default App;