react-native-enhanced-popup-menu
react-native-enhanced-popup-menu copied to clipboard
How to create right to left menu animation
I'm trying to create a top right popup menu. But the menu pops left to right. I would like it to pop right to left. How can I do that?
Looks like it is not supported right now. But I'm going to add support for this feature soon.
How did you do the "Top right" popup menu in this demo? Hardcoded? Because that's exactly what I want to do.
@jsaa Unfortunately, now this works automatically. Doesn't matter how you position your menu - it's not allowed to be outside of screen, even partially. If this is detected - menu automatically reversed to be fully visible on the screen.
So, to do that - the width of menu items should be wider that distance between component and right screen border.
If this is not your case - you can try https://github.com/mxck/react-native-material-menu, where as far as I know, were recently added right-to-left animation support.