List.Icon
A component to show an icon in a list item.
Usage
import * as React from 'react';
import { List, Palette } from 'react-native-paper';
const MyComponent = () => (
<>
<List.Icon color={Palette.tertiary70} icon="folder" />
<List.Icon color={Palette.tertiary70} icon="equal" />
<List.Icon color={Palette.tertiary70} icon="calendar" />
</>
);
export default MyComponent;
Props
icon (required)
Type: IconSource
Icon to show.
color
Type: ColorValue
Color for the icon.
style
Type: StyleProp<ViewStyle>
theme
Type: ThemeProp