-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
57 lines (53 loc) · 1.54 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
49
50
51
52
53
54
55
56
57
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet } from "react-native";
import { createDrawerNavigator } from "@react-navigation/drawer";
import { NavigationContainer } from "@react-navigation/native";
import HomeScreen from "./screens/HomeScreen";
import AmbientsScreen from "./screens/AmbientsScreen";
import PlantsScreen from "./screens/PlantsScreen";
import SoilsScreen from "./screens/SoilsScreen";
const Drawer = createDrawerNavigator();
export default function App() {
return (
<NavigationContainer>
<StatusBar style="auto" />
<Drawer.Navigator
initialRouteName="HomeScreen"
screenOptions={{
drawerContentStyle: { marginTop: "10%" },
drawerActiveTintColor: "red",
}}
>
<Drawer.Screen
name="HomeScreen"
options={{ title: "Ana Sayfa" }}
component={HomeScreen}
/>
<Drawer.Screen
name="PlantsScreen"
options={{ title: "Bitkiler" }}
component={PlantsScreen}
/>
<Drawer.Screen
name="AmbientScreens"
options={{ title: "Ortamlar" }}
component={AmbientsScreen}
/>
<Drawer.Screen
name="SoilsScreen"
options={{ title: "Topraklar" }}
component={SoilsScreen}
/>
</Drawer.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});