react-native-material-menu icon indicating copy to clipboard operation
react-native-material-menu copied to clipboard

I need the menu should appears after the button, not from bottom

Open shamim96 opened this issue 5 years ago • 3 comments

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>
Screenshot 2019-11-06 at 7 49 33 PM

shamim96 avatar Nov 06 '19 13:11 shamim96

Same problem, any solution ?

Fmendescn avatar Feb 04 '20 14:02 Fmendescn

Use this fork, it positions better by default and allows more customization:

https://github.com/likern/react-native-enhanced-popup-menu

mr-islam avatar Feb 12 '20 14:02 mr-islam

same issue, any update?

Kazehiro avatar Mar 10 '20 09:03 Kazehiro