jjzjj

DrawerNavigator

全部标签

Drawernavigator:更改背景颜色

上react-navigation'DrawerNavigator,有没有办法改变背景颜色?默认情况下,配色方案看起来如下:以下来初始化:exportconstDrawer=DrawerNavigator({dOne:{screen:Screen1,},dTwo:{screen:Screen2,}});看答案ReactNavigation为您提供了一种通过使用的方法来覆盖默认配置ContentOptions声明屏幕和屏幕名称之后。使用上面的示例,更改背景颜色将如此:constDrawer=DrawerNavigator({dOne:{screen:Screen1},dTwo:{screen:S

javascript - 单击 React-Navigation 中的 Bottom Tab Navigator 后如何打开 DrawerNavigator?

我正在使用react-navigation并尝试在单击BottomTabNavigator中的选项卡项目时打开抽屉(使用DrawerNavigator)。我现在的代码是这样的exportdefaultcreateBottomTabNavigator({Dashboard:{screen:Dashboard,navigationOptions:{tabBarLabel:'Dashboard',tabBarIcon:({tintColor})=>()}},Customers:{screen:Customers,navigationOptions:{tabBarLabel:'Customer