Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkParticipantTile

最終更新 Markdown で表示Agent セットアップ

1 人の参加者向けのビデオタイルです。映像、音声インジケーター付きのネームタグ、アバター(映像オフ時)、ピン留めインジケーターを表示します。

プロパティ

プロパティ 型 必須 デフォルト 説明
meeting RealtimeKitClient ✅ - RealtimeKit の Meeting インスタンス
participant RTKParticipant | RTKSelf ✅ - 描画する参加者
config UIConfig ❌ defaultConfig UI 設定オブジェクト
style StyleProp<any> ❌ - カスタムスタイル(通常はグリッドサイズ用の width/height)
nameTagPosition 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right' | 'none' ❌ 'bottom-left' ネームタグオーバーレイの位置
isPreview boolean ❌ false プレビュータイル(セットアップ画面)かどうか
iconPack IconPack ❌ defaultIconPack カスタムアイコンパック
size 'lg' | 'md' | 'sm' | 'xl' ❌ 'sm' サイズのバリアント
states States ❌ - UI の States オブジェクト
t RtkI18n ❌ - i18n の翻訳関数
children ReactNode ❌ - タイル上に重ねる追加コンテンツ

使用例

基本的な使い方

import { RtkParticipantTile } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return <RtkParticipantTile meeting={meeting} participant={participant} />;
}

プロパティを指定する場合

import { RtkParticipantTile } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return (
		<RtkParticipantTile
			meeting={meeting}
			participant={participant}
			nameTagPosition="bottom-left"
			isPreview={false}
			size="md"
		/>
	);
}

役に立ちましたか?