Back to React Native Paper

Avatar.Image

docs/public/2.0/avatar-image.html

5.15.1546 B
Original Source

Avatar.Image

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.Image size={24} source={require('../assets/avatar.png')} />
);

Props

source (required) Type: ImageSource

Image to display for the Avatar.

size Type: number

Default value: 64

Size of the avatar.

style Type: any

theme Type: Theme