Displays a participant's avatar image or initials-based fallback avatar.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
participant |
RTKParticipant | RTKSelf |
✅ | - | The participant whose avatar to display |
iconPack |
IconPack |
❌ | defaultIconPack |
Custom icon pack |
size |
'lg' | 'md' | 'sm' | 'xl' |
❌ | 'sm' |
Size of the avatar |
variant |
'circular' | 'hexagon' | 'square' |
❌ | 'circular' |
Shape variant of the avatar |
import { RtkAvatar } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkAvatar participant={participant} />;
}import { RtkAvatar } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkAvatar participant={participant} size="lg" variant="circular" />;
}