-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
executable file
·31 lines (27 loc) · 947 Bytes
/
App.tsx
File metadata and controls
executable file
·31 lines (27 loc) · 947 Bytes
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 React from 'react'
import { Provider as ReduxProvider } from 'react-redux'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import Toast from 'react-native-toast-message'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { Navigation } from '@navigation/index'
import { DialogProvider } from '@context/dialog'
import { store } from '@store/.'
import toastConfig from '@config/toast.config'
import AppInitializer from '@root/app-initializer'
const queryClient = new QueryClient()
const App: React.FC = () => {
return (
<QueryClientProvider client={queryClient}>
<SafeAreaProvider>
<ReduxProvider store={store}>
<DialogProvider>
<AppInitializer />
<Navigation />
<Toast config={toastConfig} />
</DialogProvider>
</ReduxProvider>
</SafeAreaProvider>
</QueryClientProvider>
)
}
export default App