我想在导航栏中显示图像和标题,但是使用下面的代码,一次只能实现一个。
下面的代码仅显示图像和汉堡图标
<Drawer
hideNavBar
key="drawerMenu"
contentComponent={SideMenu}
drawerWidth={250}
drawerPosition="left">
<Scene key="dashboard"
component={Home}
navigationBarTitleImage = {require('./images/logo.jpeg')}
navigationBarTitleImageStyle = {{width:30, height:30}}
title={"Dashboard"}/>
</Drawer>
现在,当我注释navigationBarTitleImage
时,只有标题可见,请在下面检查代码并输出
<Drawer
hideNavBar
key="drawerMenu"
contentComponent={SideMenu}
drawerWidth={250}
drawerPosition="left">
<Scene key="dashboard"
component={Home}
//navigationBarTitleImage = {require('./images/logo.jpeg')}
//navigationBarTitleImageStyle = {{width:30, height:30}}
title={"Dashboard"}/>
</Drawer>
我总共想要三件事:抽屉图标,自定义图标以及标题。谁能告诉我我的代码有什么问题吗?