-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
30 lines (27 loc) · 817 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
import React from "react";
import { Provider } from "react-redux";
import { ScreenStack } from "./combat-master/src/navigation";
import { AppLoading } from "expo";
import { store } from "./combat-master/src/store/configureStore";
import { useFonts, Cinzel_400Regular, Cinzel_700Bold } from "@expo-google-fonts/cinzel";
import { Lato_300Light } from "@expo-google-fonts/lato";
import { NavigationContainer } from "@react-navigation/native";
const App: React.FC = () => {
let [fontsLoaded] = useFonts({
Cinzel_400Regular,
Cinzel_700Bold,
Lato_300Light,
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
return (
<Provider store={store}>
<NavigationContainer>
<ScreenStack />
</NavigationContainer>
</Provider>
);
}
};
export default App;