Skip to content

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

RtkNotifications

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

ミーティングの通知(参加者の入退室、チャットメッセージ、投票、ネットワーク状態)を管理して表示するコンテナです。効果音も再生します。

プロパティ

プロパティ 型 必須 デフォルト 説明
meeting RealtimeKitClient ✅ - RealtimeKit のミーティングインスタンス
config UIConfig ✅ defaultConfig UI 設定オブジェクト
iconPack IconPack ✅ defaultIconPack カスタムアイコンパック
size 'lg' | 'md' | 'sm' | 'xl' ✅ 'sm' サイズのバリアント
states States ✅ - UI の States オブジェクト
t RtkI18n ✅ - i18n 翻訳関数

使用例

基本的な使い方

import {
	RtkNotifications,
	useLanguage,
} from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	const t = useLanguage();
	return (
		<RtkNotifications
			meeting={meeting}
			config={config}
			iconPack={iconPack}
			size="sm"
			states={states}
			t={t}
		/>
	);
}

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

import {
	RtkNotifications,
	defaultConfig,
	defaultIconPack,
	useLanguage,
} from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	const t = useLanguage();
	return (
		<RtkNotifications
			meeting={meeting}
			config={defaultConfig}
			iconPack={defaultIconPack}
			size="md"
			states={states}
			t={t}
		/>
	);
}

役に立ちましたか?