-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
31 lines (27 loc) · 771 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
28
29
30
31
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, {useEffect, useState} from 'react';
import {Provider} from 'react-redux';
import {store} from './src/redux/store';
import {AuthContextProvider as AuthGuard} from './src/context/AuthContext';
import AppStack from './AppStack';
import {QueryClient, QueryClientProvider} from 'react-query';
import {TailwindProvider} from 'nativewind';
const App = () => {
const [queryClient] = useState(() => new QueryClient());
return (
<Provider store={store}>
<AuthGuard>
<QueryClientProvider client={queryClient}>
<AppStack />
</QueryClientProvider>
</AuthGuard>
</Provider>
);
};
export default App;