RtkIcon
Renders an SVG icon from an icon string, applying the current theme text color.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
icon | string | ✅ | - | SVG icon string to render |
import { RtkIcon } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() { return <RtkIcon icon={svgIconString} />;}import { RtkIcon, defaultIconPack,} from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() { return <RtkIcon icon={defaultIconPack.mic_on} />;}