-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
33 lines (28 loc) · 942 Bytes
/
App.tsx
File metadata and controls
33 lines (28 loc) · 942 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
32
33
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { Platform, StatusBar, UIManager } from 'react-native';
import RootStack from './screens/RootStack';
import { QueryClient, QueryClientProvider } from 'react-query';
import Toast from 'react-native-toast-message';
import { RecoilRoot } from 'recoil';
import toastConfig from './utils/toastConfig';
if (Platform.OS === 'android') {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
StatusBar.setBarStyle('dark-content');
const queryClient = new QueryClient();
function App() {
return (
<RecoilRoot>
<QueryClientProvider client={queryClient}>
<NavigationContainer>
<RootStack />
<Toast position="top" config={toastConfig} />
</NavigationContainer>
</QueryClientProvider>
</RecoilRoot>
);
}
export default App;