Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shamim96 opened this issue Nov 6, 2019 · 3 comments
Open

Comments

@shamim96
Copy link

shamim96 commented Nov 6, 2019

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 shamim96 changed the title I need to menu appears after the button I need the menu should appears after the button, not from bottom Nov 6, 2019
@Fmendescn
Copy link

Same problem, any solution ?

@mr-islam
Copy link

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

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

@Kazehiro
Copy link

same issue, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants