上下文菜单远低于应有的水平。我试图使用
<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>
);
};