-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
44 lines (37 loc) · 1019 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
36
37
38
39
40
41
42
43
44
import { useFonts } from "expo-font";
import { StatusBar } from "expo-status-bar";
import { QueryClientProvider } from "react-query";
import {
Merriweather_400Regular,
Merriweather_700Bold,
} from "@expo-google-fonts/merriweather";
import {
Raleway_300Light,
Raleway_400Regular,
Raleway_500Medium,
} from "@expo-google-fonts/raleway";
import { Loading } from "./src/components/Loading";
import { Default } from "./src/layouts/Default";
import { Routes } from "./src/Routes";
import { queryClient } from "./src/lib/query-client";
export default function App() {
const [fontsLoaded] = useFonts({
MerriweatherRegular: Merriweather_400Regular,
MerriweatherBold: Merriweather_700Bold,
RalewayLight: Raleway_300Light,
RalewayRegular: Raleway_400Regular,
RalewayMedium: Raleway_500Medium,
});
if (!fontsLoaded)
return (
<Default>
<Loading />
</Default>
);
return (
<QueryClientProvider client={queryClient}>
<StatusBar style="light" />
<Routes />
</QueryClientProvider>
);
}