我正在研究App
,并添加了createDrawerNavigator
,但是drawerPosition: 'right',
仍然在左边。
如何将DrawerNavigator的内容正确对齐?
drawerLabel: 'Home'
答案 0 :(得分:0)
已解决✅。
const DrawerStack = createDrawerNavigator(
{
Home: {
screen: Screen1Stack
},
About: {
screen: Screen2Stack,
},
},
{
initialRouteName: 'Home',
contentOptions: {
activeTintColor: '#e91e63',
itemsContainerStyle: {
// opacity: 1
},
iconContainerStyle: {
// opacity: 1
},
itemStyle: {
flexDirection: 'row-reverse'
}
},
drawerWidth: 300,
drawerPosition: 'right'
}
);