Drawer.Item

A component used to show an action item with an icon and a label in a navigation drawer.

Usage

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

const MyComponent = () => (
  <Drawer.Item label="First Item" />
);

export default MyComponent;

Props

label (required)
Type: string

The label text of the item.

icon
Type: IconSource

Icon to display for the DrawerItem.

active
Type: boolean

Whether to highlight the drawer item as active.

onPress
Type: () => mixed

Function to execute on press.

style
Type: any
theme
Type: Theme