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


import * as React from 'react';
import { View } from 'react-native';
import { Menu } from 'react-native-paper';

const MyComponent = () => (
  <View style={{ flex: 1 }}>
    <Menu.Item leadingIcon="redo" onPress={() => {}} title="Redo" />
    <Menu.Item leadingIcon="undo" onPress={() => {}} title="Undo" />
    <Menu.Item leadingIcon="content-cut" onPress={() => {}} title="Cut" disabled />
    <Menu.Item leadingIcon="content-copy" onPress={() => {}} title="Copy" disabled />
    <Menu.Item leadingIcon="content-paste" onPress={() => {}} title="Paste" />

export default MyComponent;


Type: React.ReactNode

Title text for the MenuItem.

Renamed from 'icon' to 'leadingIcon' in v5.x

Leading icon to display for the MenuItem.

Available in v5.x with theme version 3

Trailing icon to display for the MenuItem.

Type: boolean

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

Available in v5.x with theme version 3
Type: boolean

Sets min height with densed layout.

Type: (e: GestureResponderEvent) => void

Function to execute on press.

Type: ThemeProp
Type: string

TestID used for testing purposes

Type: string

Accessibility label for the Touchable. This is read by the screen reader when the user taps the component.

Edit this page