我正在把自定义侧边栏嵌入到DrawerNavigator中。我试图为选定的菜单设置活动色和活动背景色。
const DrawerStack = DrawerNavigator(
{
ProfileScreen: { screen: ProfileScreen },
Home: { screen: DashboardScreen },
},
{
contentOptions: {
activeTintColor: "#e91e63",
activeBackgroundColor : 'purple',
},
gesturesEnabled: false,
swipeEnabled: false,
contentComponent: SideDrawer
});