Back to React Native Paper

Avatar.Icon

docs/public/4.0/avatar-icon.html

5.15.1760 B
Original Source

Avatar.Icon

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

Usage

js
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