Skip to content

RtkCameraToggle

Toggle button to enable or disable the local participant's camera. Automatically hides if the participant lacks video production permissions.

Properties

PropertyTypeRequiredDefaultDescription
meetingRealtimeKitClient-The RealtimeKit meeting instance
size'lg' | 'md' | 'sm' | 'xl'-Icon size
variant'button' | 'horizontal'-Layout variant
iconPackIconPackdefaultIconPackCustom icon pack
tRtkI18n-i18n translation function

Usage Examples

Basic Usage

import { RtkCameraToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkCameraToggle meeting={meeting} />;
}

With Properties

import { RtkCameraToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkCameraToggle meeting={meeting} size="md" variant="button" />;
}