-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
43 lines (39 loc) · 1.02 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
import "react-native-gesture-handler";
import React from "react";
import { createDrawerNavigator } from "@react-navigation/drawer";
import { NavigationContainer } from "@react-navigation/native";
import Home from "./Home";
import { FontAwesome } from "@expo/vector-icons";
const Drawer = createDrawerNavigator();
function App() {
return (
<NavigationContainer>
<Drawer.Navigator
initialRouteName="Home"
screenOptions={{
headerCenter: () => (
<FontAwesome name={"home"} size={24} color="black" />
),
drawerIcon: ({ focused, size }) => (
<FontAwesome
name={focused ? "home" : "bars"}
size={size}
color="black"
/>
),
}}
>
<Drawer.Screen name="Home" component={Home} />
</Drawer.Navigator>
</NavigationContainer>
);
}
export default App;
// function App() {
// return (
// <View>
// <Text>Hello</Text>
// </View>
// );
// }
// export default App;