On Android, not matching native PopupMenu look
See original GitHub issueHi there,
I am using this on android currently to try to acheive the native PopupMenu. This is a screenshot of native PopupMenu:
And this is how it looks when I use react-native-material-menu out of the box on Android:
We see on touch, there is no ripple. We need to use <TouchableNativeFeedback>
I think.
We also see that the item on press is not flush against the top. There seems to be a gap.
Is there a way to fix this on my side, or do we need to edit the lib?
Other minor issues that I can fix with style prop, but would be ideal if it matched native android:
- Font size of menu item
- Font color of menu item
- Too much (by like 4dpi) horizontal margin on menu item’s
- Elevation shadow, but i see issue for this already - https://github.com/mxck/react-native-material-menu/issues/10
It would be so awesome if this looked perfect like the native PopupMenu on Android out of the box (hence the name of the lib 😃 )
Ideally I tried to find a native lib for Android PopupMenu in react-native but I can’t. 😦 And I’m not experience with native ui modules yet in RN 😦
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
And I think use TouchableNativeFeedback is good idea.
@Noitidart temporary you can pass styles and textStyles props to MenuItem. Also. Than version of android you use and device? This is pure android?