Skip to main content
CometChatNotificationFeed displays a scrollable notification feed where each item is rendered as a native card using the CometChat Cards library. It handles fetching, pagination, category filtering, timestamp grouping, real-time updates, and read/delivered/engagement reporting automatically.

Where It Fits

CometChatNotificationFeed is a full-screen component. Drop it into a screen or navigation destination. It manages its own data fetching, state, and real-time listeners — you just handle navigation callbacks.

Minimal Render

Prerequisites: CometChat SDK initialized with CometChatUIKit.init() and a user logged in.

Filtering Feed Items

Control what loads using custom request builders:

Filter Options


Actions and Events

Callback Props

onItemClick

Fires when a feed item card is tapped.

onActionClick

Fires when an interactive element (button, link) inside a card is tapped.

onError

Fires when an internal error occurs (network failure, SDK exception).

onBackPress

Fires when the back button in the header is tapped.

Automatic Behaviors

The component handles these automatically — no manual setup needed:

Custom View Slots

HeaderView

Replace the entire header:

State Views


Styling

The component uses the theme system from CometChatThemeProvider. Pass a style prop to customize the appearance.

Style Properties


Props

All props are optional.

cardThemeMode

Theme mode for the card renderer.

cardThemeOverride

Custom theme override for the card renderer.

EmptyView

Custom component displayed when there are no notifications.

ErrorView

Custom component displayed when an error occurs.

HeaderView

Custom component replacing the entire header.

LoadingView

Custom component displayed during the loading state.

notificationCategoriesRequestBuilder

Custom request builder for fetching categories.

notificationFeedRequestBuilder

Custom request builder for fetching feed items.

onActionClick

Callback fired when an interactive element inside a card is tapped.

onBackPress

Callback fired when the back button is pressed.

onError

Callback fired when the component encounters an error.

onItemClick

Callback fired when a feed item card is tapped.

scrollToItemId

Deep link to a specific feed item by ID.

showBackButton

Shows/hides the back button in the header.

showFilterChips

Shows/hides the category filter chips row.

showHeader

Shows/hides the entire header.

title

Header title text.

Common Patterns

Show only unread items

Hide filter chips and header


Next Steps

Campaigns Feature

Overview of how campaigns work end-to-end

SDK Campaigns API

Low-level SDK APIs for feed items, categories, and engagement

Component Styling

Full styling reference for all components

Theming

Customize colors, fonts, and appearance