-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
35 lines (29 loc) · 1.02 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
32
33
34
35
import { QueryClient, QueryClientProvider } from 'react-query';
import { LogBox } from 'react-native';
import { NotifierWrapper } from 'react-native-notifier';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import CodePush from 'react-native-code-push';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { RecoilRoot } from 'recoil';
import { PortalProvider } from '@gorhom/portal';
import { Router } from 'src/Router';
const client = new QueryClient({ defaultOptions: { queries: { retry: 0 } } });
LogBox.ignoreAllLogs();
function App() {
return (
<SafeAreaProvider>
<RecoilRoot>
<GestureHandlerRootView style={{ flex: 1 }}>
<PortalProvider>
<QueryClientProvider client={client}>
<NotifierWrapper>
<Router />
</NotifierWrapper>
</QueryClientProvider>
</PortalProvider>
</GestureHandlerRootView>
</RecoilRoot>
</SafeAreaProvider>
);
}
export default CodePush(App);