File tree 1 file changed +50
-8
lines changed
1 file changed +50
-8
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,56 @@ const bottomNavigator =
78
78
}
79
79
} )
80
80
81
- const MainNavigator = createDrawerNavigator ( {
82
- PostTabs : {
83
- screen : bottomNavigator
84
- } ,
85
- About : {
86
- screen : AboutNavigator
81
+ const MainNavigator = createDrawerNavigator (
82
+ {
83
+ PostTabs : {
84
+ screen : bottomNavigator ,
85
+ navigationOptions : {
86
+ drawerLabel : 'Main' ,
87
+ drawerIcon : (
88
+ < Ionicons
89
+ size = { 20 }
90
+ name = 'ios-home'
91
+ color = { THEME . PRIMARY_COLOR }
92
+ />
93
+ )
94
+ }
95
+ } ,
96
+ About : {
97
+ screen : AboutNavigator ,
98
+ navigationOptions : {
99
+ drawerLabel : 'About us' ,
100
+ drawerIcon : (
101
+ < Ionicons
102
+ size = { 20 }
103
+ name = 'information-circle'
104
+ color = { THEME . PRIMARY_COLOR }
105
+ />
106
+ )
107
+ }
108
+ } ,
109
+ Create : {
110
+ screen : CreateNavigator ,
111
+ navigationOptions : {
112
+ drawerLabel : 'Create Post' ,
113
+ drawerIcon : (
114
+ < Ionicons
115
+ size = { 20 }
116
+ name = 'add-circle'
117
+ color = { THEME . PRIMARY_COLOR }
118
+ />
119
+ )
120
+ }
121
+ }
87
122
} ,
88
- Create : CreateNavigator
89
- } )
123
+ {
124
+ contentOptions : {
125
+ activeTintColor : THEME . PRIMARY_COLOR ,
126
+ labelStyle : {
127
+ fontFamily : 'open-regular'
128
+ }
129
+ }
130
+ }
131
+ )
90
132
91
133
export const AppNavigation = createAppContainer ( MainNavigator )
You can’t perform that action at this time.
0 commit comments