-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
41 lines (34 loc) · 830 Bytes
/
App.js
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
import { Provider } from "react-redux";
import { useEffect } from "react";
import { store } from "./reduxToolkit/store";
import * as SplashScreen from "expo-splash-screen";
SplashScreen.preventAutoHideAsync();
import {
useFonts,
Roboto_400Regular,
Roboto_500Medium,
Roboto_900Black,
} from "@expo-google-fonts/roboto";
import { Pacifico_400Regular } from "@expo-google-fonts/pacifico";
import { Main } from "./components/Main";
export default function App() {
const [fontsLoaded] = useFonts({
Roboto_400Regular,
Roboto_500Medium,
Roboto_900Black,
Pacifico_400Regular,
});
useEffect(() => {
if (fontsLoaded) {
SplashScreen.hideAsync();
}
}, [fontsLoaded]);
if (!fontsLoaded) {
return null;
}
return (
<Provider store={store}>
<Main />
</Provider>
);
}