-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (27 loc) · 953 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
import { StatusBar } from "expo-status-bar";
import { SafeAreaView, StyleSheet, View } from "react-native";
import { useFonts } from "@use-expo/font";
import { AppLoading } from "expo";
import { Colors, Metrics } from "./src/theme";
import CustomText from "./src/common/CustomText";
import RootNavigation from "./src/navigation/RootNavigation";
export default function App() {
const [fontsLoaded] = useFonts({
EncodedSansBold: require("./assets/fonts/EncodeSans-Bold.ttf"),
EncodedSansRegular: require("./assets/fonts/EncodeSans-Regular.ttf"),
MontserratBold: require("./assets/fonts/Montserrat-Bold.ttf"),
MontserratRegular: require("./assets/fonts/Montserrat-Regular.ttf"),
});
// if (!fontsLoaded) {
// return <AppLoading />;
// }
return <RootNavigation />;
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});