Skip to content

Commit 5ab937f

Browse files
committed
Drawer styles customized
1 parent d9ea199 commit 5ab937f

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

src/navigation/AppNavigation.js

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,56 @@ const bottomNavigator =
7878
}
7979
})
8080

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+
}
87122
},
88-
Create: CreateNavigator
89-
})
123+
{
124+
contentOptions: {
125+
activeTintColor: THEME.PRIMARY_COLOR,
126+
labelStyle: {
127+
fontFamily: 'open-regular'
128+
}
129+
}
130+
}
131+
)
90132

91133
export const AppNavigation = createAppContainer(MainNavigator)

0 commit comments

Comments
 (0)