-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
29 lines (26 loc) · 878 Bytes
/
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
import {config} from '@gluestack-ui/config';
import {GluestackUIProvider, StatusBar} from '@gluestack-ui/themed';
import {DefaultTheme, NavigationContainer} from '@react-navigation/native';
import {MainNavigator} from '@src/navigators';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
function App() {
const queryClient = new QueryClient();
const MyTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background: config.tokens.colors.white,
},
};
return (
<GluestackUIProvider config={config}>
<StatusBar backgroundColor="$trueGray200" barStyle="dark-content" />
<QueryClientProvider client={queryClient}>
<NavigationContainer theme={MyTheme}>
<MainNavigator />
</NavigationContainer>
</QueryClientProvider>
</GluestackUIProvider>
);
}
export default App;