Logo

Avatar.Icon

Avatars can be used to represent people in a graphical way.

Usage

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

const MyComponent = () => (
  <Avatar.Icon size={24} icon="folder" />
);

Props

icon (required)
Type: IconSource

Icon to display for the Avatar.

size
Type: number
Default value: 64

Size of the avatar.

color
Type: string

Custom color for the icon.

style
Type: StyleProp<ViewStyle>
theme
Type: ReactNativePaper.Theme
Edit this page