RtkSettingsToggle
Toggle button to open the settings dialog. Hides if no audio or video permissions are available.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
size | 'lg' | 'md' | 'sm' | 'xl' | ❌ | - | Icon size |
states | States | ❌ | - | UI state object |
variant | 'button' | 'horizontal' | ❌ | - | Layout variant |
iconPack | IconPack | ❌ | defaultIconPack | Custom icon pack |
t | RtkI18n | ❌ | - | i18n translation function |
import { RtkSettingsToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() { return <RtkSettingsToggle />;}import { RtkSettingsToggle } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() { return <RtkSettingsToggle size="md" variant="button" states={states} />;}