React native 使用下拉菜单(例如whatsapp)对本机工具栏android做出反应

React native 使用下拉菜单(例如whatsapp)对本机工具栏android做出反应,react-native,android-toolbar,whatsapp,React Native,Android Toolbar,Whatsapp,我需要开发一个下拉列表,比如whatsapp 这是我试图用Android做的代码 <Icon.ToolbarAndroid titleColor={'#000000'} style={{ height: 56, alignSelf: 'stretch', width: 20 }}

我需要开发一个下拉列表,比如whatsapp

这是我试图用Android做的代码

<Icon.ToolbarAndroid
              titleColor={'#000000'}
              style={{
                 height: 56,
                 alignSelf: 'stretch',
                 width: 20
               }}
              iconColor={"#fff"}
              iconSize={26}
              rtl={true}
              navIconName={"more-vert"}
              contentInsetStart={50}
              actions={[{title: 'Settings', show: 'always'}, {title: 'Settings 2', show: 'always'}]} />

我不知道Android是否是我所需要的组件,也许如果我知道这种风格的菜单的真实名称,我可以在谷歌搜索中更加准确

下面是菜单的图像:

只需在此处更改即可:

actions={[{title: 'Settings', show: 'never'}, {title: 'Settings 2', show: 'never'}]} />
这在android中称为溢出菜单:

动作“显示:”

何时将此操作显示为图标或在溢出菜单中隐藏它: 始终,无论是否有房间

如果设置“从不”,它将隐藏在工具栏右侧的溢出菜单图标中

有关更多信息,请参见此