Logo

List.Icon

A component to show an icon in a list item.

Usage

import * as React from 'react';
import { List, MD3Colors } from 'react-native-paper';

const MyComponent = () => (
  <>
    <List.Icon color={MD3Colors.tertiary70} icon="folder" />
    <List.Icon color={MD3Colors.tertiary70} icon="equal" />
    <List.Icon color={MD3Colors.tertiary70} icon="calendar" />
  </>
);

export default MyComponent;

Props

Icon to show.

Type: string

Color for the icon.

Edit this page