-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
59 lines (57 loc) · 1.42 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
import React from "react";
import { TouchableOpacity, View, Text } from "react-native";
import { createDrawerNavigator } from "react-navigation";
import { Icon } from "react-native-elements";
import homeStackNav from "./stackNavs/Home";
import animalTabNav from "./tabNavs/Animal";
import colorTabNav from "./tabNavs/Color";
import aboutStackNav from "./stackNavs/About";
const drawerNav = createDrawerNavigator({
Home: {
screen: homeStackNav,
navigationOptions: {
drawerLabel: "Anasayfa",
drawerIcon: ({ tintColor }) => (
<Icon type="MaterialIcons" name="home" size={25} />
)
}
},
AnimalTabNav: {
screen: animalTabNav,
navigationOptions: {
drawerLabel: "Hayvanlar",
drawerIcon: ({ tintColor }) => (
<Icon type="MaterialIcons" name="android" size={25} />
)
}
},
ColorTabNav: {
screen: colorTabNav,
navigationOptions: {
drawerLabel: "Renkler",
drawerIcon: ({ tintColor }) => (
<Icon type="MaterialIcons" name="color-lens" size={25} />
)
}
},
About: {
screen: aboutStackNav,
navigationOptions: {
drawerLabel: "Hakkında",
drawerIcon: ({ tintColor }) => (
<Icon type="MaterialIcons" name="flag" size={25} />
)
}
}
}
/*
,{
contentComponent: (props) => {
return <View>
<Text>dsfsdf</Text>
</View>
}
}
*/
);
export default drawerNav;