Avatar

Preview of the Avatar component.

Displays participant image and/or name. Falls back to name display when no image is provided. Use in video calls, user lists, profiles, and more.

General usage

import { Avatar, useLocalParticipant } from "@stream-io/video-react-native-sdk";

export function AvatarExample() {
  const localParticipant = useLocalParticipant();
  return <Avatar size={80} participant={localParticipant} />;
}

Props

participant

Type
StreamVideoParticipant

The participant object to display.

size

TypeDefault Value
number | undefined100

Avatar dimensions (width and height) in pixels.

style

Type
{container:ViewStyle; image:ImageStyle; text: TextStyle}