mxck / react-native-material-menu

Pure JavaScript material menu component for React Native
MIT License
520 stars 92 forks source link

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

Open shamim96 opened 4 years ago

shamim96 commented 4 years ago

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
Fmendescn commented 4 years ago

Same problem, any solution ?

mr-islam commented 4 years ago

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

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

Kazehiro commented 4 years ago

same issue, any update?