1

上下文菜单远低于应有的水平。我试图使用

<Menu renderer={Popover} rendererProps={{ placement: 'top' }} >

但这只是微不足道的帮助。这是一个屏幕截图。任何帮助表示赞赏。

在此处输入图像描述

编辑:我现在使用了自定义菜单,如https://github.com/instea/react-native-popup-menu/blob/master/doc/extensions.md所示。

这会将选项菜单移动到正确的位置,但会丢失所有样式并且没有动画并且永远不会消失。

const CustomMenu = (props) => {
const { style, children, layouts, ...other } = props;
const position = { top: 0, right: 0 }
return (
    <View name={'newquote2'} {...other} style={[style, position]}>
        {children}
    </View>
);

};

4

1 回答 1

0

您需要将库菜单组件与您自己的自定义菜单一起使用。例如

<Menu renderer={CustomMenu} >
于 2018-08-02T13:37:14.813 回答