-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
48 lines (44 loc) · 1.36 KB
/
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
42
43
44
45
46
47
48
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import CustomText from "./src/common/CustomText";
import { useFonts } from "@use-expo/font";
import { AppLoading } from "expo";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { Home } from "./src/screens/app";
import AppNavigation from "./src/navigation/AppNavigation";
import PlantDetails from "./src/screens/app/PlantDetails";
const Stack = createNativeStackNavigator();
export default function App() {
const [fontsLoaded] = useFonts({
NunitoBlack: require("./assets/static/Nunito-Black.ttf"),
NunitoBold: require("./assets/static/Nunito-Bold.ttf"),
});
// if (!fontsLoaded) {
// return <AppLoading />;
// }
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
options={{ headerShown: false }}
name="AppNavigation"
component={AppNavigation}
/>
<Stack.Screen
options={{ headerShown: false }}
name="PlantDetails"
component={PlantDetails}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});