nandorojo / zeego

Menus for React (Native) done right.
https://zeego.dev
MIT License
1.45k stars 42 forks source link

Custom styling does not work for DropdownMenu - Item, Content, Title #8

Closed zienna closed 2 years ago

zienna commented 2 years ago

I've been trying to use custom styles to change the background color or text color of each item on the menu, but the style prop seems to be ignored by each component

nandorojo commented 2 years ago

native menus don’t allow styles like that.

see this for what is possible on iOS: https://github.com/dominicstop/react-native-ios-context-menu

nandorojo commented 2 years ago

style is only used on Web.

zienna commented 2 years ago

The screenshot on the home page shows a menu for ios with gray, black, and red text. How can we implement that without style? Or is that feature not supported

nandorojo commented 2 years ago

Can you try destructive and disabled as props on the Item? This will be documented in the future.