我正在尝试将图标添加到以下简单的React Navigation DrawerNavigator:
export default createAppContainer(createDrawerNavigator({
Home: {
screen: HomeScreen,
icon: 'home'
},
Screen1: {
screen: Screen1
},
Screen2: {
screen: Screen2
},
Screen3: {
screen: Screen3
},
}));
抽屉显示正常,但图标不是。