-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
25 lines (23 loc) · 888 Bytes
/
App.tsx
File metadata and controls
25 lines (23 loc) · 888 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
import React, {PropsWithChildren} from 'react';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {NavigationComponentProps} from 'react-native-navigation';
// Contexts
//import dependencyInjection from 'src/config/di';
import {NavigationProvider} from 'src/ui/contexts/NavigationContext';
import {CoinsProvider} from '@contexts/CoinsContext';
// -----------------------------------------------------
//
// If you want implement a custom Wrapper auth here as example <AuthProvider />
const queryClient = new QueryClient();
export default function WrapApp({
componentId,
children,
}: PropsWithChildren<NavigationComponentProps>) {
return (
<QueryClientProvider client={queryClient}>
<NavigationProvider componentId={componentId}>
<CoinsProvider>{children}</CoinsProvider>
</NavigationProvider>
</QueryClientProvider>
);
}