Skip to content

RtkNotification

A single notification toast with slide-in/slide-out animation, avatar, message text, and dismiss button.

Properties

PropertyTypeRequiredDefaultDescription
notificationNotification-Notification object with id, message, image, duration, and button
onRtkNotificationDismissany-Callback when notification is dismissed
iconPackIconPackdefaultIconPackCustom icon pack
size'lg' | 'md' | 'sm' | 'xl''sm'Size variant
tRtkI18n-i18n translation function

Usage Examples

Basic Usage

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

With Properties

import { RtkNotification } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return (
<RtkNotification
notification={notification}
onRtkNotificationDismiss={(id) => handleDismiss(id)}
size="md"
/>
);
}