如何使用反应本机路由器流量在右侧按钮上添加图标

问题描述 投票:0回答:2

我想使用反应本机路由器流量在标题中添加react-native-vector-icon代替右按钮

这是我的代码:

<Scene
    onRight={() => Actions.inbox()} 
    rightTitle='Inbox' 
    key='home'
    component={Home} 
    title='Home'
    icon={HomeIcon}
    initial
/> 

如何在其中添加react-native-vector-icon

react-native react-native-router-flux
2个回答
0
投票

您可以使用[而不是“ rightTitle”道具:


0
投票

我知道了,我用renderRightButton解决了。

© www.soinside.com 2019 - 2024. All rights reserved.