我正在尝试在移动应用中实现更多选项菜单,并且我使用了react-native的react-native-options-menu程序包。即使单击更多选项按钮,菜单也不会显示。下面是我使用的代码。
{<OptionsMenu
customButton={(<Icon type = {iconNames.fontAwesome} name={iconNames.more} color={"white"} size={30} style={{marginRight: 8}}/>)}
destructiveIndex={1}
options={["Edit", "Delete", "Cancel"]}
actions={[this.editPost, this.deletePost]}/>}
PS:我不知道自己缺少什么或做错了什么。另外,在import语句(从“ react-native-options-menu”中导入import OptionsMenu)中,它在react-native下显示3个点,当我将鼠标悬停在它上面时,它说找不到模块,但是该模块位于节点模块中
谢谢!