【发布时间】:2018-08-16 05:12:51
【问题描述】:
我正在创建我的第一个 react-native 应用程序,我想更改抽屉导航的 css。我已经尝试使用 activeTintColor 更改颜色,但它不起作用。我只是想更改图标颜色或处于活动状态的菜单项.
我所做的是在这里:
const DrawerNavigation = createDrawerNavigator({
Page1: {
screen: MainTabNavigator,
navigationOptions: {
drawerLabel: 'Home'
},
contentOptions: {
activeTintColor: 'rgb(234, 94, 32)'
}
},
page2: {
screen: AboutUs,
navigationOptions: {
drawerLabel: 'About Us'
},
contentOptions: {
activeTintColor: 'rgb(234, 94, 32)'
}
},
Page3: {
screen: LogoutScreen,
navigationOptions: {
drawerLabel: 'Logout'
},
contentOptions: {
activeTintColor: 'rgb(234, 94, 32)'
}
}
},
{
initialRouteName: 'Page1',
contentComponent: CustomDrawerContentComponent
});
【问题讨论】:
标签: react-native react-native-navigation