We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Menu Item row styles cannot be customized
There should be a prop to customize the MenuItem View styles, or at least the default styles should include
MenuItem
View
align-items: center
react-native-paper/src/components/Menu/MenuItem.tsx
Line 179 in 813cdd4
Using style and contentStyle but they won't work because they are not applied to the inner View
style
contentStyle
The text was updated successfully, but these errors were encountered:
Hey, what do you want to achieve? If you want to center the text you can do it like this:
<Menu.Item style={{alignItems: 'center'}} contentStyle={{ alignItems:'center'}} />
Sorry, something went wrong.
@gedu I'm trying to vertically center the leading icon and the text, which parent view is a view we cannot apply styles to
I am on the same boat, Trying to get the View to take full width.
lukewalczak
Successfully merging a pull request may close this issue.
Current behaviour
Menu Item row styles cannot be customized
Expected behaviour
There should be a prop to customize the
MenuItem
View
styles, or at least the default styles should includeHow to reproduce?
react-native-paper/src/components/Menu/MenuItem.tsx
Line 179 in 813cdd4
What have you tried so far?
Using
style
andcontentStyle
but they won't work because they are not applied to the innerView
The text was updated successfully, but these errors were encountered: