在 React Native Router Flux 中,我有一个react-native-drawer
名为NavDrawer
. 它目前在导航栏左侧有默认的汉堡菜单图标,并希望将其更改为另一个自定义图标。所以我尝试了,leftTitle='Menu',但它没有改变。
所以我想知道如何自定义react-native-drawer
的默认菜单图标?
而且我还通过 更改了导航栏的高度navigationBarStyle
,因此按钮目前靠近导航栏的底部而不是在中间。所以在 中navigationBarStyle
,我尝试了flex: 1, flexDirection: 'row', alignItems: 'center'
,但没有改变任何东西。
那么如何将导航栏中的元素水平居中对齐呢?
这是代码:
<Scene key='drawer' component={NavDrawer} open={false}>
<Scene key="main" navigationBarStyle={styles.navigationBar} onRight={() => Actions.profile()} rightTitle='Profile'>
...
</Scene>
<Scene/>
谢谢