-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
43 lines (40 loc) · 1.13 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
36
37
38
39
40
41
42
43
import React from "react";
import { StatusBar } from "expo-status-bar";
import { useFonts } from "expo-font";
import {
Roboto_300Light,
Roboto_400Regular,
Roboto_500Medium,
Roboto_700Bold,
Roboto_900Black,
} from "@expo-google-fonts/roboto";
import { Routes } from "./source/routes";
import { ThemeProvider } from "styled-components/native";
import { theme } from "./source/theme";
import AppLoading from "expo-app-loading";
import { Provider } from "react-redux";
import store from "~/redux";
import DialogModal from "~/components/DialogModal";
import ResultAnimation from "~/components/ResultAnimation";
import LoadingAnimation from "~/components/LoadingAnimation";
export default function App() {
const [fontsLoaded] = useFonts({
Roboto_300Light,
Roboto_400Regular,
Roboto_500Medium,
Roboto_700Bold,
Roboto_900Black,
});
if (!fontsLoaded) return <AppLoading />;
return (
<ThemeProvider theme={theme}>
<StatusBar hidden />
<Provider store={store}>
<Routes />
<DialogModal />
<ResultAnimation />
<LoadingAnimation />
</Provider>
</ThemeProvider>
);
}