-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainDrawer.js
27 lines (24 loc) · 902 Bytes
/
MainDrawer.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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator, DrawerItem } from "@react-navigation/drawer";
import CustomDrawerContent from "./components/CustomDrawerContentComponent";
import MainTabs from "./MainTabs";
import About from "./screens/AboutScreen";
const Drawer = createDrawerNavigator();
export default function MainDrawer() {
return (
<NavigationContainer>
<Drawer.Navigator
drawerStyle={{
width: 240,
}}
drawerContentOptions={{ activeTintColor: "#008080" }}
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Home" component={MainTabs} />
<Drawer.Screen name="About" component={About} />
<Drawer.Screen name="Settings" component={MainTabs} />
</Drawer.Navigator>
</NavigationContainer>
);
}