-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (24 loc) · 775 Bytes
/
App.js
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 from 'react';
import { NativeBaseProvider } from 'native-base';
import { NavigationContainer } from '@react-navigation/native';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import Routes from './src/routes';
import { AuthProvider } from './src/contexts/auth';
import { SafeAreaProvider } from 'react-native-safe-area-context';
const queryClient = new QueryClient()
const App = () => {
return (
<SafeAreaProvider>
<NativeBaseProvider>
<QueryClientProvider client={queryClient}>
<AuthProvider>
<NavigationContainer>
<Routes />
</NavigationContainer>
</AuthProvider>
</QueryClientProvider>
</NativeBaseProvider>
</SafeAreaProvider>
)
}
export default App