-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
72 lines (64 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import React from 'react';
import { NavigationContainer } from '@react-navigation/native'
import { createDrawerNavigator } from '@react-navigation/drawer';
import { Entypo } from '@expo/vector-icons';
import MainTabScreen from './screens/MainTabScreen'
import Portfolio from './components/Portfolio'
import Skills from './components/Skills'
import About from './components/About'
import Hire from './components/Hire'
const Drawer = createDrawerNavigator()
function HamburgerMenu() {
return (
<Drawer.Navigator
drawerPosition="right"
drawerContentOptions={{
labelStyle: { fontSize: 24, color: 'black', fontFamily: 'serif', padding: 5 },
itemStyle: { marginLeft: 10 }
}}
>
<Drawer.Screen
name="Home"
component={MainTabScreen}
options={{
drawerIcon: () => <Entypo name="home" size={24} color="black"/>
}}
/>
<Drawer.Screen
name="Portfolio"
component={Portfolio}
options={{
drawerIcon: () => <Entypo name="briefcase" size={24} color="black"/>
}}
/>
<Drawer.Screen
name="Skills"
component={Skills}
options={{
drawerIcon: () => <Entypo name="pencil" size={24} color="black"/>
}}
/>
<Drawer.Screen
name="About Me"
component={About}
options={{
drawerIcon: () => <Entypo name="info" size={24} color="black"/>
}}
/>
<Drawer.Screen
name="Hire Me"
component={Hire}
options={{
drawerIcon: () => <Entypo name="email" size={24} color="black"/>
}}
/>
</Drawer.Navigator>
)
}
export default function App() {
return (
<NavigationContainer>
<HamburgerMenu />
</NavigationContainer>
)
}