-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
executable file
·35 lines (29 loc) · 877 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
30
31
32
33
34
35
import 'react-native-gesture-handler';
import { NavigationContainer } from '@react-navigation/native';
import {
StatusBar,
useColorScheme,
} from 'react-native';
import Tabs from './components/Tabs';
import Navbar from './components/utils/navbar/Navbar';
import { QueryClient, QueryClientProvider } from 'react-query';
const queryClient = new QueryClient();
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? "#051a00": "#eafffe",
};
return (
<NavigationContainer>
<QueryClientProvider client={ queryClient } >
<StatusBar
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
backgroundColor={ "#fff" }
/>
<Navbar />
<Tabs />
</QueryClientProvider>
</NavigationContainer>
);
};
export default App;