Skip to content
Platform docs
Auth, users, webhooks & more
Info:
This is beta documentation for Stream Video React Native SDK v2. For the latest stable version, see the latest version (v1).

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

Type Default Value
number | undefined 100

Avatar dimensions (width and height) in pixels.

style

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