-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
37 lines (34 loc) · 819 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
import React from "react";
import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
import {
useFonts,
Poppins_400Regular,
Poppins_500Medium,
Poppins_600SemiBold,
} from "@expo-google-fonts/poppins";
import Routes from "./src/routes";
import AppLoader from "./src/components/appLoader";
import Home from "./src/screens/Home";
// import "dotenv/config";
export default function App() {
let [fontsLoaded] = useFonts({
Poppins_400Regular,
Poppins_500Medium,
Poppins_600SemiBold,
});
if (!fontsLoaded) {
return <AppLoader />;
} else {
return <Routes />;
// return <Home />;
}
// return(<AppLoader/>)
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});