DrawerItem

Item from drawer's list which navigates to specific location.

Usage

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

Props

label (required)
Type: string

The label text of the item.

icon
Type: IconSource

Name of the icon. Can be a string (name of MaterialIcon), an object of shape { uri: 'https://path.to' }, a local image: require('../path/to/image.png'), or a valid React Native component.

active
Type: boolean

Whether to highlight the drawer item as active.

onPress
Type: Function

Function to execute on press.

color
Type: string

Custom color for the drawer text and icon.

theme
Type: Theme