react-native-material-menu
react-native-material-menu copied to clipboard
I need the menu should appears after the button, not from bottom
I have integrated the menu. When I click the button(3 doted button), my all menus are appears from bottom. But I want my menu should appears after the button. Please suggest me how can I do that. The are the code
<View >
<Menu
ref={this.setMenuRef}
button={<Entypo onPress={showMenu} name="dots-three-vertical" size={20} />}
>
<MenuItem onPress={this.hideMenu}>Menu item 1</MenuItem>
<MenuItem onPress={this.hideMenu}>Menu item 2</MenuItem>
<MenuItem onPress={this.hideMenu} disabled>
Menu item 3
</MenuItem>
<MenuDivider />
<MenuItem onPress={this.hideMenu}>Menu item 4</MenuItem>
</Menu>
</View>
Same problem, any solution ?
Use this fork, it positions better by default and allows more customization:
https://github.com/likern/react-native-enhanced-popup-menu
same issue, any update?