-
Notifications
You must be signed in to change notification settings - Fork 91
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
Can we make the menu fixed at the bottom of the screen? #62
Comments
@rmscoelho at the moment this is not possible. For temporary fix you can modify that line to set menu position from props (or use hardcoded constants). Like this: show = () => {
this.setState({
buttonHeight: 0,
buttonWidth: 0,
left: this.props.left,
menuState: STATES.SHOWN,
top: this.props.top,
});
}; Also you need remove padding from constants in render method. |
@mxck Thanks man! But keep going, this is pretty good stuff, good potencial! I like those ideas of yous ;) |
@rmscoelho You can try out this package - https://www.npmjs.com/package/react-native-enhanced-popup-menu. It initially was based on this react-native-material-menu, but more flexible in terms of customizations. I support not only bottom position, but BOTTOM_LEFT, BOTTOM_RIGHT, BOTTOM_CENTER. And on top of that you can add your custom dynamic position shifts (offsets). It allows you to place menu virtually everywhere. |
@likern I think we ended up using that one. Not sure now, it was 3 months ago already ahahah Many thanks anyways! |
Good evening,
I am trying to make the menu always open in the same position, because I am having trouble with it opening over the last item of a loop, instead of on top of the clicked item.
If there is a solution, I'd be pretty grateful.
Thank you!
The text was updated successfully, but these errors were encountered: