Menu.Item

A component to show a single list item inside a Menu.

Props

title (required)
Type: React.ReactNode

Title text for the MenuItem.

icon
Type: IconSource

Icon to display for the MenuItem.

disabled
Type: boolean

Whether the 'item' is disabled. A disabled 'item' is greyed out and onPress is not called on touch.

onPress
Type: () => void

Function to execute on press.

theme
Type: Theme
style
Type: any