Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0fd50d3
docs(react-native): offline support for the React Native UI Kit
raj-dubey1 Nov 16, 2026
ac2cd8c
docs: a failed edit clears the composer, as on Android
raj-dubey1 Nov 17, 2026
100710a
docs(ENG-57592): correct the React Native offline support page
raj-dubey1 Nov 19, 2026
a1c7335
docs(ENG-57592): link offline support from the React Native UI Kit pages
raj-dubey1 Nov 19, 2026
e2703e8
docs(ENG-57592): tighten offline notices, discard and hideError details
raj-dubey1 Nov 19, 2026
ef3bb5c
docs(ENG-57592): scope hideError note and DISCARDED reason
raj-dubey1 Nov 19, 2026
a2076ff
docs(ENG-57592): correct send promise rejection codes
raj-dubey1 Nov 19, 2026
8bd0e51
docs(ENG-57592): describe cache reset outcome of queued sends
raj-dubey1 Nov 19, 2026
abf2905
docs(ENG-57592): fix send promise rejection codes for dropped queued …
raj-dubey1 Nov 19, 2026
69c504b
docs(ENG-57592): qualify reset and onError notes for send promises
raj-dubey1 Nov 19, 2026
7db996e
docs(ENG-57592): note no notice for an encryption-change reset
raj-dubey1 Nov 19, 2026
b9933f1
docs(ENG-57592): don't promise queueing for files picked offline
raj-dubey1 Nov 19, 2026
66bc2d3
docs(ENG-57592): fix the send promises anchor link
raj-dubey1 Nov 19, 2026
755175c
docs(ENG-57592): bump React Native Chat SDK offline minimum to 4.2.1
raj-dubey1 Nov 23, 2026
efadf17
docs(ENG-57592): remove duplicate-message mentions from React Native …
raj-dubey1 Nov 23, 2026
23c734e
docs(ENG-57592): drop remaining indirect duplicate mention in RN offl…
raj-dubey1 Nov 23, 2026
b4779fe
docs(ENG-57334): document the group-call refusal and the 5.6.0 Androi…
raj-dubey1 Nov 24, 2026
77b271b
chore(docs): bring docs/uikit-offline-react-native up to date with ma…
raj-dubey1 Nov 24, 2026
3c40339
docs(react-native): limitations list carries scope only, and drop the…
raj-dubey1 Nov 24, 2026
1c65e1a
docs(ENG-57334): limitations carries scope only
raj-dubey1 Nov 24, 2026
c2f77f9
docs(react-native): move the compileSdk 35 warning out of the optiona…
raj-dubey1 Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,7 @@
"group": "Chat",
"pages": [
"ui-kit/react-native/core-features",
"ui-kit/react-native/offline-support",
"ui-kit/react-native/extensions",
"ui-kit/react-native/ai-features"
]
Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/offline-cached-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
- **The server phase never fires offline.** It fires only on a genuine server response. Never treat a cached page as "end of history"; an empty cached page only means the end of the *cached* window.

<Note>
With offline support **off**, these listeners behave like a plain read: the cached phase never fires, and the server result arrives in `onServer…` alongside the Promise. Nothing changes until you enable offline ([Enable Offline Support](/sdk/react-native/offline-enable)). Requires SDK **4.2.0**.
With offline support **off**, these listeners behave like a plain read: the cached phase never fires, and the server result arrives in `onServer…` alongside the Promise. Nothing changes until you enable offline ([Enable Offline Support](/sdk/react-native/offline-enable)). Requires SDK **4.2.1**.
</Note>

## Read messages
Expand All @@ -73,7 +73,7 @@
onServerMessages: (messages: CometChat.BaseMessage[]) => {
// Reconcile this slice against the cached page, keyed by message id.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 76 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L76

Did you really mean 'onError'?
console.log("Fetch failed:", error.code);
},
});
Expand Down Expand Up @@ -119,7 +119,7 @@
onServerConversations: (conversations: CometChat.Conversation[]) => {
// Reconcile, keyed by conversation id.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 122 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L122

Did you really mean 'onError'?
console.log("Fetch failed:", error.code);
},
});
Expand Down Expand Up @@ -175,7 +175,7 @@
request.fetchNext({
onCachedUsers: (users: CometChat.User[]) => { /* render */ },
onServerUsers: (users: CometChat.User[]) => { /* reconcile, keyed by uid */ },
onError: (error: CometChat.CometChatException) => console.log(error.code),

Check warning on line 178 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L178

Did you really mean 'onError'?
});
```
</Tab>
Expand Down Expand Up @@ -212,7 +212,7 @@
onServerConversation: (conversation: CometChat.Conversation) => {
// Server copy, written through before delivery.
},
onError: (error: CometChat.CometChatException) => {

Check warning on line 215 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L215

Did you really mean 'onError'?
console.log("Lookup failed:", error.code);
},
});
Expand All @@ -220,7 +220,7 @@
CometChat.getMessageDetails(messageId, {
onCachedMessage: (message?: CometChat.BaseMessage) => { /* cache hit only */ },
onServerMessage: (message: CometChat.BaseMessage) => { /* server copy */ },
onError: (error: CometChat.CometChatException) => console.log(error.code),

Check warning on line 223 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L223

Did you really mean 'onError'?
});
```
</Tab>
Expand Down Expand Up @@ -251,7 +251,7 @@

## Merge the two phases

The server phase **replaces the same slice** — it is a reconcile, not a second batch. Render the cached page straight away, then on the server phase diff it into your displayed list keyed by the item's stable id (message id, conversation id, uid, guid). Do not append the server page to the cached one.

Check warning on line 254 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L254

Did you really mean 'uid'?

Check warning on line 254 in sdk/react-native/offline-cached-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-cached-data.mdx#L254

Did you really mean 'guid'?

<Tip>
Key your list by id so the two phases merge cleanly: update items that changed, add new ones, and drop cached items the server slice omits. To page further back, issue the next `fetchPrevious()` / `fetchNext()` rather than treating the server phase as more pages.
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/offline-enable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

| Field | Value |
| --- | --- |
| Package | `@cometchat/chat-sdk-react-native` (4.2.0 or later) |
| Package | `@cometchat/chat-sdk-react-native` (4.2.1 or later) |
| Config class | `CometChat.OfflineConfig` — `new CometChat.OfflineConfig({ enabled: true })` |
| Attach to | `new CometChat.AppSettingsBuilder().setOfflineConfig(config)` (or the `.offline(true)` shorthand) |
| Install (peers) | `@op-engineering/op-sqlite` 9.0.0+ (required), `react-native-fs`, `react-native-keychain` |
Expand Down Expand Up @@ -36,7 +36,7 @@
<Steps>

<Step title="Requirements">
Offline support requires CometChat React Native Chat SDK **4.2.0** or later.
Offline support requires CometChat React Native Chat SDK **4.2.1** or later.

The local database is provided by a native module that you install in your app. It is an optional peer dependency of the SDK, so installing the SDK never requires it:

Expand All @@ -63,14 +63,14 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const offlineConfig: CometChat.OfflineConfig = new CometChat.OfflineConfig({

Check warning on line 66 in sdk/react-native/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-enable.mdx#L66

Did you really mean 'offlineConfig'?
enabled: true,
});
```
</Tab>
<Tab title="JavaScript">
```javascript
const offlineConfig = new CometChat.OfflineConfig({

Check warning on line 73 in sdk/react-native/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-enable.mdx#L73

Did you really mean 'offlineConfig'?
enabled: true,
});
```
Expand All @@ -84,7 +84,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const appSettings: CometChat.AppSettings = new CometChat.AppSettingsBuilder()

Check warning on line 87 in sdk/react-native/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-enable.mdx#L87

Did you really mean 'appSettings'?
.setRegion("REGION")
.setOfflineConfig(offlineConfig) // explicit config
// .offline(true) // shorthand: enable with defaults
Expand All @@ -93,7 +93,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const appSettings = new CometChat.AppSettingsBuilder()

Check warning on line 96 in sdk/react-native/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-enable.mdx#L96

Did you really mean 'appSettings'?
.setRegion("REGION")
.setOfflineConfig(offlineConfig) // explicit config
// .offline(true) // shorthand: enable with defaults
Expand Down Expand Up @@ -165,4 +165,4 @@

## Next steps

Offline support is now active for the logged-in user. Continue with [Show Cached Data](/sdk/react-native/offline-cached-data) to adopt the two-phase listeners, and [Send While Offline](/sdk/react-native/offline-send) for the durable outbox. Tune caps, TTLs, media, and encryption from the [Configuration & API Reference](/sdk/react-native/offline-reference).

Check warning on line 168 in sdk/react-native/offline-enable.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-enable.mdx#L168

Did you really mean 'TTLs'?
2 changes: 1 addition & 1 deletion sdk/react-native/offline-encryption.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: "Encrypt the Cache"
sidebarTitle: "Encrypt the Cache"
description: "Encrypt the offline message cache at rest with SQLCipher, choose what happens when encryption cannot run, and inspect the live encryption status with the CometChat React Native Chat SDK."

Check warning on line 4 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L4

Did you really mean 'SQLCipher'?
---

<Accordion title="AI Integration Quick Reference">

| Field | Value |
| --- | --- |
| 1. SQLCipher in your app | Add `{"op-sqlite": {"sqlcipher": true}}` to **your app's** `package.json`, then rebuild |

Check warning on line 11 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L11

Did you really mean 'SQLCipher'?
| 2. A key store | Install `react-native-keychain`, or call `CometChat.setOfflineKeyVault(vault)` before `init` |
| 3. Turn it on | `new CometChat.OfflineConfig({ enabled: true, encryption: true })` |
| Failure behavior | `encryptionFailureBehavior`: `ONLINE_ONLY` (default) or `PLAINTEXT_FALLBACK` |
Expand All @@ -35,10 +35,10 @@

</Accordion>

Offline support keeps the logged-in user's messages in a local database on the device. Turn encryption on to store that database **encrypted at rest** using [SQLCipher](https://www.zetetic.net/sqlcipher/). Encryption is **opt-in** and off by default; nothing changes until you set `encryption: true`. The minimum SDK version is **4.2.0**.
Offline support keeps the logged-in user's messages in a local database on the device. Turn encryption on to store that database **encrypted at rest** using [SQLCipher](https://www.zetetic.net/sqlcipher/). Encryption is **opt-in** and off by default; nothing changes until you set `encryption: true`. The minimum SDK version is **4.2.1**.

<Note>
Encryption covers the **message database only**. Downloaded media files (photos, voice notes, documents) stay as ordinary unencrypted files on disk, because their local paths are handed to image and video loaders. See [What gets encrypted](#what-gets-encrypted). This is not end-to-end encryption: CometChat's servers still see message content.

Check warning on line 41 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L41

Did you really mean 'unencrypted'?
</Note>

## Prepare your app
Expand All @@ -46,8 +46,8 @@
The SDK does **not** bundle the cipher engine or a key store, so apps that do not use encryption pay nothing for them. If you enable encryption you must provide both, on your side.

<Steps>
<Step title="Compile SQLCipher into your app">

Check warning on line 49 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L49

Did you really mean 'SQLCipher'?
The local database is provided by `@op-engineering/op-sqlite`. Add its SQLCipher flag to **your app's** `package.json` and rebuild the native project:

Check warning on line 50 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L50

Did you really mean 'SQLCipher'?

```json package.json
{
Expand Down Expand Up @@ -82,7 +82,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
const offlineConfig = new CometChat.OfflineConfig({

Check warning on line 85 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L85

Did you really mean 'offlineConfig'?
enabled: true,
encryption: true,
encryptionFailureBehavior: CometChat.EncryptionFailureBehavior.ONLINE_ONLY,
Expand All @@ -95,10 +95,10 @@

`encryptionFailureBehavior` decides what the cache does when encryption **cannot be applied at all** on this build or device — for example SQLCipher is not compiled into the app, or there is no secure key store. It governs only that case: a transient failure still retries without writing plaintext, and a lost or wrong key self-heals by wiping and rebuilding the cache **encrypted**.

| Value | Behavior | Writes plaintext? |

Check warning on line 98 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L98

Did you really mean 'plaintext'?
|---|---|---|
| `ONLINE_ONLY` *(default)* | Do not open a local cache at all — the session runs online-only. Makes a setup mistake visible: offline simply does not work until the missing piece is added. | No |
| `PLAINTEXT_FALLBACK` | Open an **unencrypted** cache so offline keeps working. | Yes |

Check warning on line 101 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L101

Did you really mean 'unencrypted'?

<Warning>
`PLAINTEXT_FALLBACK` means cached message content may be stored **unencrypted** on disk whenever encryption cannot run. This availability-over-guarantee trade is wrong for compliance use — keep the default `ONLINE_ONLY` if cached content must never be written in the clear.
Expand Down Expand Up @@ -138,12 +138,12 @@
| `enabled` | `boolean` | What was **configured** (`encryption`), not what was achieved. `false` while CometChat has offline switched off for your app. |
| `atRest` | `string` | Coverage actually achieved: `"SQLCIPHER"` once an encrypted open is proven, otherwise `"NONE"`. |
| `keyStorage` | `string` | `"KEYSTORE"` when the key came from the platform keychain; `"SOFTWARE"` when a vault reports a software fallback; `"NONE"` when this session holds no key. Read `NONE` as "no key in use", not "no key exists". |
| `cipherAvailable` | `boolean` | Whether the SQLCipher engine is present in this build. `false` when encryption is off or SQLCipher is missing. |

Check warning on line 141 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L141

Did you really mean 'SQLCipher'?
| `cipher` | `string \| null` | The engine's `cipher_version` once an encrypted open is proven, else `null`. |
| `leakage` | `string` | What encryption at rest never covers — the media files stored outside the database. |

<Tip>
The two most useful support signals are `enabled === true` with `cipherAvailable === false` (SQLCipher is not compiled into the app — add the `op-sqlite` flag and rebuild) and `enabled === true` with `keyStorage === "NONE"` (no secure key store — install `react-native-keychain` or set a vault).

Check warning on line 146 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L146

Did you really mean 'SQLCipher'?
</Tip>

## What gets encrypted
Expand All @@ -157,7 +157,7 @@

## Cache resets on key loss

If the key can no longer decrypt the stored database, the SDK wipes the local cache and rebuilds it **encrypted** — it never silently falls back to plaintext for a cache that could be encrypted. Any unsent messages still queued in the outbox at that point are lost. They lived inside the unreadable database, so they cannot be counted or reported one by one: `pendingMessagesLost` is `-1` (`CometChat.OFFLINE_PENDING_COUNT_UNKNOWN`). When the reset is `ENCRYPTION_CHANGED` instead, each queued message fails with reason `DISCARDED` and `pendingMessagesLost` is the exact count, unless the old database could not be read.

Check warning on line 160 in sdk/react-native/offline-encryption.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-encryption.mdx#L160

Did you really mean 'plaintext'?

Register an `OfflineCacheResetListener` to be told when this happens:

Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/offline-media-caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
});

await CometChat.addMediaDownloadListener("MEDIA_LISTENER", {
onMediaDownloaded: (messageId, attachmentKey, localPath) => {},

Check warning on line 37 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L37

Did you really mean 'messageId'?

Check warning on line 37 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L37

Did you really mean 'attachmentKey'?
onMediaDownloadFailed: (messageId, attachmentKey, error) => {},

Check warning on line 38 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L38

Did you really mean 'messageId'?

Check warning on line 38 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L38

Did you really mean 'attachmentKey'?
});
```

</Accordion>

With offline support on, the SDK can cache attachment bytes durably on the device so media stays viewable offline — even after the server's presigned URL has expired. This page covers the caching modes, what downloads automatically, how to read cached bytes, and how to download media on demand.

Check warning on line 44 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L44

Did you really mean 'presigned'?

<Note>
Media caching applies only while offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`), and needs the optional `react-native-fs` peer dependency. See [Enable Offline Support](/sdk/react-native/offline-enable).
Media caching applies only while offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`), and needs the optional `react-native-fs` peer dependency. See [Enable Offline Support](/sdk/react-native/offline-enable). Requires SDK **4.2.1** or later.
</Note>

<Warning>
Expand Down Expand Up @@ -76,7 +76,7 @@

In `AUTO` mode, media bytes are downloaded and cached automatically on the two live receive paths:

- a **realtime** media message received while connected, and

Check warning on line 79 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L79

Did you really mean 'realtime'?
- opening a chat **online** (the server read refreshes and caches its media).

A media message that arrives through a reconnect catch-up [sync](/sdk/react-native/offline-sync) is cached as **metadata only** and renders as a placeholder; its bytes download lazily the next time you open that chat online. This holds in both `AUTO` and `OFF`.
Expand Down Expand Up @@ -119,7 +119,7 @@
onMediaProgress: (messageId: string, attachmentKey: string, percent: number) => {
// 0..100, best-effort.
},
onMediaDownloadFailed: (messageId: string, attachmentKey: string, error: { code: string; message: string }) => {

Check warning on line 122 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L122

Did you really mean 'messageId'?

Check warning on line 122 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L122

Did you really mean 'attachmentKey'?
console.log(error.code); // MEDIA_OFFLINE_NOT_CACHED | MEDIA_DOWNLOAD_FAILED | ERROR_OFFLINE_DISABLED
},
});
Expand All @@ -128,7 +128,7 @@
<Tab title="JavaScript">
```javascript
const path = await CometChat.downloadMedia(attachment, {
onMediaDownloaded: (messageId, attachmentKey, localPath) => {

Check warning on line 131 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L131

Did you really mean 'messageId'?

Check warning on line 131 in sdk/react-native/offline-media-caching.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-media-caching.mdx#L131

Did you really mean 'attachmentKey'?
// Bytes cached; render from localPath.
},
onMediaProgress: (messageId, attachmentKey, percent) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/offline-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

| Field | Value |
| --- | --- |
| Package | `@cometchat/chat-sdk-react-native` (4.2.0 or later) |
| Package | `@cometchat/chat-sdk-react-native` (4.2.1 or later) |
| Default | **Off.** Enable with `new CometChat.OfflineConfig({ enabled: true })` on `AppSettingsBuilder.setOfflineConfig()` |
| Native peers | `@op-engineering/op-sqlite` (required), `react-native-fs` (media), `react-native-keychain` (encryption) |
| Check it is active | `CometChat.isOfflineEnabled()` |
Expand All @@ -34,7 +34,7 @@
Offline support keeps the logged-in user's conversations and messages on the device so your app can show them instantly, lets the user send messages while disconnected, and catches up automatically when the connection returns. It is **off by default** — nothing changes in your app until you enable it ([Enable Offline Support](/sdk/react-native/offline-enable)). This page explains the mental model; the other pages show the exact APIs.

<Note>
Offline support requires CometChat React Native Chat SDK **4.2.0** or later.
Offline support requires CometChat React Native Chat SDK **4.2.1** or later.
</Note>

## How it works
Expand All @@ -43,7 +43,7 @@

<Steps>
<Step title="Cache first, then server">
Every read that you pass a listener to goes through the local cache first. For list reads the SDK delivers the cached page immediately, even when it is empty. Single-item lookups (`getMessageDetails`, `getConversation`) deliver a cached result only when that item is already cached. The SDK then fetches from the server and delivers the fresh result. Your UI renders what is on the device without waiting for the network, then updates when the server responds. See [Show Cached Data](/sdk/react-native/offline-cached-data).

Check warning on line 46 in sdk/react-native/offline-overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-overview.mdx#L46

Did you really mean 'lookups'?
</Step>
<Step title="A durable send outbox">
A message you send with a `MessageSentListener` while offline is saved to a durable outbox and reported as pending instead of failing. It survives app restarts and is sent when the connection returns. See [Send While Offline](/sdk/react-native/offline-send).
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/offline-reference.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Offline Configuration & API Reference"
sidebarTitle: "Configuration & API Reference"
description: "A complete reference for the offline configuration options, public methods, listeners, enums, model fields, and error codes with the CometChat React Native Chat SDK."

Check warning on line 4 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L4

Did you really mean 'enums'?
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -12,7 +12,7 @@
| Introspection | `isOfflineEnabled()` · `getMediaCachingMode()` · `getOfflineEncryptionStatus()` · `getSyncState()` · `await getLastSyncTimestamp()` · `await getCacheSize()` |
| Outbox | `await getPendingMessages()` · `retryMessage(localId)` · `retryAllFailedMessages()` · `discardLocalMessage(localId)` |
| Control | `forceSyncNow()` · `clearOfflineCache()` |
| Minimum SDK | 4.2.0 |
| Minimum SDK | 4.2.1 |

```typescript
const offlineConfig = new CometChat.OfflineConfig({
Expand All @@ -27,7 +27,7 @@

</Accordion>

This page is the full surface of CometChat's offline support in the React Native Chat SDK: configuration options, public methods, listeners, enums, model fields, and error codes. The minimum SDK version is **4.2.0**, and offline support is **off by default**. For task-focused guides see [Enable Offline Support](/sdk/react-native/offline-enable), [Show Cached Data](/sdk/react-native/offline-cached-data), [Send While Offline](/sdk/react-native/offline-send), [Stay in Sync](/sdk/react-native/offline-sync), [Media Caching](/sdk/react-native/offline-media-caching), and [Encrypt the Cache](/sdk/react-native/offline-encryption).
This page is the full surface of CometChat's offline support in the React Native Chat SDK: configuration options, public methods, listeners, enums, model fields, and error codes. The minimum SDK version is **4.2.1**, and offline support is **off by default**. For task-focused guides see [Enable Offline Support](/sdk/react-native/offline-enable), [Show Cached Data](/sdk/react-native/offline-cached-data), [Send While Offline](/sdk/react-native/offline-send), [Stay in Sync](/sdk/react-native/offline-sync), [Media Caching](/sdk/react-native/offline-media-caching), and [Encrypt the Cache](/sdk/react-native/offline-encryption).

Check warning on line 30 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L30

Did you really mean 'enums'?

## OfflineConfig options

Expand All @@ -52,7 +52,7 @@

Attach the config at init via `AppSettingsBuilder.setOfflineConfig(OfflineConfig)`, or enable with defaults via the `offline(boolean)` shorthand — see [Enable Offline Support](/sdk/react-native/offline-enable).

The config object also exposes read-only getters: `isEnabled()`, `isEncryptionEnabled()`, `getEncryptionFailureBehavior()`, `getCacheDurationDays()`, `getMaxStorageSize()`, `getMaxMessagesPerConversation()`, `getMaxConversations()`, `getMaxSnapshotQueries()`, `getSnapshotTtlDays()`, `getMaxPendingMessages()`, `isAutoSendPendingOnReconnect()`, `getPendingQueueOverflowPolicy()`, `getMediaCaching()` and `getMaxMediaCacheSize()`.

Check warning on line 55 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L55

Did you really mean 'getters'?

## Public methods on CometChat

Expand Down Expand Up @@ -120,13 +120,13 @@
| `MediaDownloadListener` (global) | `onMediaDownloaded(messageId, attachmentKey, localPath)`, `onMediaDownloadFailed(messageId, attachmentKey, error)` |
| `MessageListener` | `onMessagesSynced(messages)` (offline addition to the existing listener) |

## Enums

Check warning on line 123 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L123

Did you really mean 'Enums'?

| Enum | Values |
|---|---|
| `MediaCachingMode` | `AUTO` (auto-download + retain received media), `OFF` (skip auto-download; metadata still cached) |
| `PendingMessageOverflowPolicy` | `DROP_OLDEST` (evict the oldest pending to admit a newer send), `REJECT_NEWEST` (reject the new send) |
| `EncryptionFailureBehavior` | `ONLINE_ONLY` (online-only; never plaintext), `PLAINTEXT_FALLBACK` (open an unencrypted cache) |

Check warning on line 129 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L129

Did you really mean 'plaintext'?

Check warning on line 129 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L129

Did you really mean 'unencrypted'?
| `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED` |
| `MessageFailureReason` | `TRANSIENT` (retry likely helps), `PERMANENT` (retry won't help), `QUEUE_OVERFLOW` (evicted to admit a newer send), `QUEUE_FULL` (new send rejected, queue full), `BYTE_OVERFLOW` (media exceeded the byte cap), `DISCARDED` (removed before it could send) |
| `MessageSource` | `REALTIME`, `SYNC` |
Expand All @@ -135,13 +135,13 @@
| `OfflineCacheResetReason` | `KEY_LOST`, `WRONG_KEY`, `CORRUPTED`, `ESCALATED` (unclassified failure recurred and was escalated), `ENCRYPTION_CHANGED` (the `encryption` setting changed between launches) |
| Upload item `state` | `QUEUED`, `UPLOADING`, `UPLOADED`, `FAILED`, `REJECTED` |

All enums are available on `CometChat` (for example `CometChat.MessageStatus.PENDING`). `CometChat.OFFLINE_PENDING_COUNT_UNKNOWN` is `-1`.

Check warning on line 138 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L138

Did you really mean 'enums'?

## Model fields

| Field | Type | Meaning |
|---|---|---|
| `BaseMessage.getLocalMessageId()` | `string \| undefined` | SDK-generated local handle for an optimistic/offline send; the stable key to reconcile the row when the server ack arrives. `undefined` for messages that never went through the outbox. |

Check warning on line 144 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L144

Did you really mean 'ack'?
| `BaseMessage.getMessageStatus()` | `MessageStatus` | Derived lifecycle status of the message. Not the same as `getStatus()`. |
| `BaseMessage.getFailureReason()` | `MessageFailureReason \| undefined` | Why a queued send is `FAILED`; otherwise `undefined`. |
| `BaseMessage.getSource()` | `MessageSource` | `SYNC` for a message delivered by a catch-up sync, otherwise `REALTIME`. |
Expand All @@ -155,7 +155,7 @@
|---|---|
| `FAILED_TO_FETCH` | A read reached the server phase with no connection (fires after the cached page on a two-phase fetch, and rejects the Promise). On a send, the same code with `errorParams.queued === true` is the "queued, not failed" notice. |
| `ERROR_OFFLINE_SYNC_IN_PROGRESS` | `forceSyncNow()` was called while a sync is already running. |
| `ERROR_OFFLINE_SYNC_COOLDOWN` | `forceSyncNow()` was called within the 10-second throttle cooldown; `details.retryAfterMs` says when to retry. |

Check warning on line 158 in sdk/react-native/offline-reference.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-reference.mdx#L158

Did you really mean 'cooldown'?
| `ERROR_OFFLINE_DISABLED` | An offline-only operation was called while offline support is not active. |
| `USER_NOT_LOGED_IN` | `forceSyncNow()` was called with no logged-in user. |
| `ERROR_OFFLINE_MESSAGE_DISCARDED` | A queued message was removed before it could send: by `clearOfflineCache()`, a cache rebuild, or leaving or deleting its conversation. A logout ends unsent sends without calling any listener. |
Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/offline-send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
With offline support enabled, a message you send while the device has no connection is **durably queued on the device** instead of failing. It keeps its place across an app restart and is sent automatically once the connection is back and stable (with `autoSendPendingOnReconnect` on, the default). This page shows the offline-aware send listener, how to read a message's status, how to inspect and recover the send queue, and the queue limits.

<Note>
Offline support is **off by default** and requires SDK **4.2.0** or newer. Queuing only happens once you [enable it](/sdk/react-native/offline-enable); with offline off, a send over no connection fails exactly as before.
Offline support is **off by default** and requires SDK **4.2.1** or newer. Queuing only happens once you [enable it](/sdk/react-native/offline-enable); with offline off, a send over no connection fails exactly as before.
</Note>

## Send a Message
Expand All @@ -47,7 +47,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
const textMessage: CometChat.TextMessage = new CometChat.TextMessage(

Check warning on line 50 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L50

Did you really mean 'textMessage'?
"UID",
"Hello!",
CometChat.RECEIVER_TYPE.USER
Expand All @@ -62,7 +62,7 @@
// Server ack: message now carries its real id and sentAt
console.log("Sent:", message.getId());
},
onError: (error: CometChat.CometChatException, reason?: CometChat.MessageFailureReason | null) => {

Check warning on line 65 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L65

Did you really mean 'onError'?
// reason == null: queued, not failed. Otherwise a real failure.
console.log("Send error:", error.code, reason);
},
Expand Down Expand Up @@ -124,7 +124,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
onError: (error: CometChat.CometChatException, reason?: CometChat.MessageFailureReason | null) => {

Check warning on line 127 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L127

Did you really mean 'onError'?
if (reason == null) {
// Queued offline — auto-sends on reconnect
} else {
Expand All @@ -135,7 +135,7 @@
</Tab>
<Tab title="JavaScript">
```javascript
onError: (error, reason) => {

Check warning on line 138 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L138

Did you really mean 'onError'?
if (reason == null) {
// Queued offline — auto-sends on reconnect
} else {
Expand All @@ -150,7 +150,7 @@

Every message exposes its offline state. `getLocalMessageId()` returns the SDK-generated handle that is stamped at compose (while offline is running) and stays stable across the whole lifecycle — use it to retry or discard the message.

| Accessor | Type | Notes |

Check warning on line 153 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L153

Did you really mean 'Accessor'?
|---|---|---|
| `getLocalMessageId()` | `string \| undefined` | Client handle; present while offline is running. |
| `getMessageStatus()` | `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED`. |
Expand All @@ -164,7 +164,7 @@

| Reason | When |
|---|---|
| `TRANSIENT` | A temporary server error (5xx, or 429 rate-limited), no answer after 5 automatic reconnect attempts in a row, or, with `autoSendPendingOnReconnect` off, no answer at all. Retryable. |

Check warning on line 167 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L167

Did you really mean 'Retryable'?
| `PERMANENT` | The server rejected the message, or the error was not recognized. A manual retry will not help. |
| `QUEUE_FULL` | A new send was refused because the queue is full (count cap). |
| `QUEUE_OVERFLOW` | An older queued message was evicted to admit a newer one (`DROP_OLDEST` only). |
Expand Down Expand Up @@ -247,7 +247,7 @@

- **`retryMessage(localMessageId)`** re-attempts one message. A `FAILED` message is reset to `PENDING` and sent; a `PENDING` message is attempted now rather than waiting for a reconnect. The result is that attempt's outcome.
- **`retryAllFailedMessages()`** retries **transient** failures only; permanent ones are skipped. The Promise form resolves once the retries are issued; pass a `MessageSentListener` to see each outcome.
- **`discardLocalMessage(localMessageId)`** deletes an unsent (`PENDING` or `FAILED`) message from the device, including its copied media. The discard's own listener (`DiscardMessageListener`) gets `onSuccess(localMessageId)`; the original send's listener is released with no final outcome.

Check warning on line 250 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L250

Did you really mean 'send's'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -289,7 +289,7 @@

## Auto-send on Reconnect

By default, queued `PENDING` messages are sent automatically when the realtime connection is re-established. This is controlled by `OfflineConfig.autoSendPendingOnReconnect` (default `true`); see [Enable Offline Support](/sdk/react-native/offline-enable) and the [reference](/sdk/react-native/offline-reference). A queued message that keeps getting no answer is retried on each reconnect, up to 5 times, then becomes `FAILED` (`TRANSIENT`). With it off, nothing retries a queued message on reconnect — a send that gets no answer becomes `FAILED` (`TRANSIENT`), which you recover with `retryMessage`.

Check warning on line 292 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L292

Did you really mean 'realtime'?

Reconnect also runs a catch-up sync for received messages — see [Stay in Sync](/sdk/react-native/offline-sync).

Expand Down Expand Up @@ -348,5 +348,5 @@
See [Media Caching](/sdk/react-native/offline-media-caching) for downloading and caching received attachments.

<Tip>
For the full list of offline methods, listeners, enums, model fields, and error codes, see the [Offline Configuration & API Reference](/sdk/react-native/offline-reference).

Check warning on line 351 in sdk/react-native/offline-send.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-send.mdx#L351

Did you really mean 'enums'?
</Tip>
2 changes: 1 addition & 1 deletion sdk/react-native/offline-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
When the device comes back online, the SDK runs a **catch-up sync**: it refreshes the conversation list, then replays everything that changed in your messages since the last sync, and merges the results into the local cache. This page covers how to observe that sync, trigger one on demand, and manage the cache it maintains.

<Note>
Everything on this page is a no-op unless offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/react-native/offline-enable). The message catch-up depends on the server's `updatedAt` message changelog; against a server without it, each sweep returns nothing and missed edits, deletes, and reactions are not synced.
Everything on this page is a no-op unless offline support is active for the logged-in user (`CometChat.isOfflineEnabled()` is `true`). See [Enable Offline Support](/sdk/react-native/offline-enable). Requires SDK **4.2.1** or later. The message catch-up depends on the server's `updatedAt` message changelog; against a server without it, each sweep returns nothing and missed edits, deletes, and reactions are not synced.
</Note>

## How catch-up works
Expand Down Expand Up @@ -129,7 +129,7 @@
If you already use a `CometChat.MessageListener`, synced messages still arrive there, so you usually do not need a `SyncListener` to keep your chat up to date:

- **Genuinely new** messages arrive one-by-one on `onTextMessageReceived` (and the other typed variants), with `getSource()` equal to `MessageSource.SYNC`.
- **Updates** to already-cached messages arrive together on `onMessagesSynced(messages)`. Upsert the batch by id; never append it.

Check warning on line 132 in sdk/react-native/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-sync.mdx#L132

Did you really mean 'Upsert'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -180,13 +180,13 @@
<Tab title="TypeScript">
```typescript
const state: CometChat.SyncState = CometChat.getSyncState(); // IDLE or SYNCING
const lastSync: number = await CometChat.getLastSyncTimestamp(); // server epoch seconds; 0 if never synced

Check warning on line 183 in sdk/react-native/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-sync.mdx#L183

Did you really mean 'lastSync'?
```
</Tab>
<Tab title="JavaScript">
```javascript
const state = CometChat.getSyncState(); // IDLE or SYNCING
const lastSync = await CometChat.getLastSyncTimestamp(); // server epoch seconds; 0 if never synced

Check warning on line 189 in sdk/react-native/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-sync.mdx#L189

Did you really mean 'lastSync'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -231,7 +231,7 @@
| Rejection code | Meaning |
|---|---|
| `ERROR_OFFLINE_SYNC_IN_PROGRESS` | A sync (automatic or manual) is already running. |
| `ERROR_OFFLINE_SYNC_COOLDOWN` | A sync ran too recently; `error.details.retryAfterMs` carries the remaining cooldown in milliseconds. |

Check warning on line 234 in sdk/react-native/offline-sync.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/offline-sync.mdx#L234

Did you really mean 'cooldown'?
| `ERROR_OFFLINE_DISABLED` | A user is logged in but offline support is not active. |
| `USER_NOT_LOGED_IN` | Nobody is logged in. The spelling is the SDK's existing code. |

Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/real-time-listeners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| Key Classes | `Action`, `BaseMessage`, `Call`, `CallListener`, `CardMessage`, `CustomMessage` |
| Prerequisites | SDK initialized via [`CometChat.init()`](/sdk/react-native/setup-sdk) and a logged-in user via [`CometChat.login()`](/sdk/react-native/authentication-overview) |
| Primary output | Every `add*Listener()` / `remove*Listener()` returns **`void`** — events arrive on the callbacks you register, never as a return value |
| Constraints | Every `add*Listener()` needs a matching `remove*Listener()` with the same listener ID — unremoved listeners leak and fire after unmount. Listener IDs are global — reusing one silently replaces the earlier listener. |

Check warning on line 16 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L16

Did you really mean 'unmount'?
| Related | [Receive Messages](/sdk/react-native/receive-messages) · [Connection Status](/sdk/react-native/connection-status) · [User Presence](/sdk/react-native/user-presence) |
| Full reference | [`BaseMessage`](/sdk/reference/messages#basemessage) · [`User`](/sdk/reference/entities#user) · [`Group`](/sdk/reference/entities#group) · [`CometChatException`](/sdk/reference/auxiliary#cometchatexception) |

Expand Down Expand Up @@ -60,10 +60,10 @@
2. Handle events in the callback methods
3. Remove the listener with `removeXListener()` when it's no longer needed

Each listener ID must be unique. Re-registering with the same ID replaces the previous listener. Always remove listeners on component unmount to prevent memory leaks.

Check warning on line 63 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L63

Did you really mean 'unmount'?

<Warning>
Always remove listeners when they're no longer needed (e.g., on component unmount). Failing to remove listeners can cause memory leaks and duplicate event handling. For React Native, use `useEffect` cleanup functions to handle listener removal automatically.

Check warning on line 66 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L66

Did you really mean 'unmount'?
</Warning>

CometChat provides 4 listeners viz.
Expand Down Expand Up @@ -96,8 +96,8 @@
onUserOnline: (onlineUser: CometChat.User) => {
console.log("On User Online:", { onlineUser });
},
onUserOffline: (offlineUser: CometChat.User) => {

Check warning on line 99 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L99

Did you really mean 'offlineUser'?
console.log("On User Offline:", { offlineUser });

Check warning on line 100 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L100

Did you really mean 'offlineUser'?
},
})
);
Expand Down Expand Up @@ -152,13 +152,13 @@

| Method | Information |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **onGroupMemberJoined(action: [CometChat.Action](/sdk/reference/messages#action), joinedUser: [CometChat.User](/sdk/reference/entities#user), joinedGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user joins any group. All the members present in the group will receive this event. |

Check warning on line 155 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L155

Did you really mean 'joinedUser'?

Check warning on line 155 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L155

Did you really mean 'joinedGroup'?
| **onGroupMemberLeft(action: [CometChat.Action](/sdk/reference/messages#action), leftUser: [CometChat.User](/sdk/reference/entities#user), leftGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user who was a member of any group leaves the group. All the members of the group receive this event. |

Check warning on line 156 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L156

Did you really mean 'leftUser'?

Check warning on line 156 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L156

Did you really mean 'leftGroup'?
| **onGroupMemberKicked(action: [CometChat.Action](/sdk/reference/messages#action), kickedUser: [CometChat.User](/sdk/reference/entities#user), kickedBy: [CometChat.User](/sdk/reference/entities#user), kickedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is kicked from a group. All the members including the user receive this event |

Check warning on line 157 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L157

Did you really mean 'kickedUser'?

Check warning on line 157 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L157

Did you really mean 'kickedBy'?

Check warning on line 157 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L157

Did you really mean 'kickedFrom'?
| **onGroupMemberBanned(action: [CometChat.Action](/sdk/reference/messages#action), bannedUser: [CometChat.User](/sdk/reference/entities#user), bannedBy: [CometChat.User](/sdk/reference/entities#user), bannedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is banned from a group. All the members including the user receive this event |

Check warning on line 158 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L158

Did you really mean 'bannedUser'?

Check warning on line 158 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L158

Did you really mean 'bannedBy'?

Check warning on line 158 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L158

Did you really mean 'bannedFrom'?
| **onGroupMemberUnbanned(action: [CometChat.Action](/sdk/reference/messages#action), unbannedUser: [CometChat.User](/sdk/reference/entities#user), unbannedBy: [CometChat.User](/sdk/reference/entities#user), unbannedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is unbanned from a group. All the members of the group receive this event. |

Check warning on line 159 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L159

Did you really mean 'unbannedUser'?

Check warning on line 159 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L159

Did you really mean 'unbannedBy'?

Check warning on line 159 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L159

Did you really mean 'unbannedFrom'?
| **onGroupMemberScopeChanged(action: [CometChat.Action](/sdk/reference/messages#action), changedUser: [CometChat.User](/sdk/reference/entities#user), newScope: string, oldScope: string, changedGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when the scope of any Group Member has been changed. All the members that are a part of that group receive this event |

Check warning on line 160 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L160

Did you really mean 'changedUser'?

Check warning on line 160 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L160

Did you really mean 'newScope'?

Check warning on line 160 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L160

Did you really mean 'oldScope'?

Check warning on line 160 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L160

Did you really mean 'changedGroup'?
| **onMemberAddedToGroup(action: [CometChat.Action](/sdk/reference/messages#action), userAdded: [CometChat.User](/sdk/reference/entities#user), addedBy: [CometChat.User](/sdk/reference/entities#user), addedTo: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is added to any group. All the members including the user himself receive this event. |

Check warning on line 161 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L161

Did you really mean 'userAdded'?

Check warning on line 161 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L161

Did you really mean 'addedBy'?

Check warning on line 161 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L161

Did you really mean 'addedTo'?

To add the `GroupListener`:

Expand All @@ -177,76 +177,76 @@
},
onGroupMemberLeft: (
message: CometChat.Action,
leftUser: CometChat.User,

Check warning on line 180 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L180

Did you really mean 'leftUser'?
leftGroup: CometChat.Group

Check warning on line 181 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L181

Did you really mean 'leftGroup'?
) => {
console.log("onGroupMemberLeft", { message, leftUser, leftGroup });

Check warning on line 183 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L183

Did you really mean 'leftUser'?

Check warning on line 183 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L183

Did you really mean 'leftGroup'?
},
onGroupMemberKicked: (
message: CometChat.Action,
kickedUser: CometChat.User,

Check warning on line 187 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L187

Did you really mean 'kickedUser'?
kickedBy: CometChat.User,

Check warning on line 188 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L188

Did you really mean 'kickedBy'?
kickedFrom: CometChat.Group

Check warning on line 189 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L189

Did you really mean 'kickedFrom'?
) => {
console.log("onGroupMemberKicked", {
message,
kickedUser,

Check warning on line 193 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L193

Did you really mean 'kickedUser'?
kickedBy,

Check warning on line 194 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L194

Did you really mean 'kickedBy'?
kickedFrom,

Check warning on line 195 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L195

Did you really mean 'kickedFrom'?
});
},
onGroupMemberBanned: (
message: CometChat.Action,
bannedUser: CometChat.User,

Check warning on line 200 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L200

Did you really mean 'bannedUser'?
bannedBy: CometChat.User,

Check warning on line 201 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L201

Did you really mean 'bannedBy'?
bannedFrom: CometChat.Group

Check warning on line 202 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L202

Did you really mean 'bannedFrom'?
) => {
console.log("onGroupMemberBanned", {
message,
bannedUser,

Check warning on line 206 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L206

Did you really mean 'bannedUser'?
bannedBy,

Check warning on line 207 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L207

Did you really mean 'bannedBy'?
bannedFrom,

Check warning on line 208 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L208

Did you really mean 'bannedFrom'?
});
},
onGroupMemberUnbanned: (
message: CometChat.Action,
unbannedUser: CometChat.User,

Check warning on line 213 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L213

Did you really mean 'unbannedUser'?
unbannedBy: CometChat.User,

Check warning on line 214 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L214

Did you really mean 'unbannedBy'?
unbannedFrom: CometChat.Group

Check warning on line 215 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L215

Did you really mean 'unbannedFrom'?
) => {
console.log("onGroupMemberUnbanned", {
message,
unbannedUser,

Check warning on line 219 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L219

Did you really mean 'unbannedUser'?
unbannedBy,

Check warning on line 220 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L220

Did you really mean 'unbannedBy'?
unbannedFrom,

Check warning on line 221 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L221

Did you really mean 'unbannedFrom'?
});
},
onGroupMemberScopeChanged: (
message: CometChat.Action,
changedUser: CometChat.User,

Check warning on line 226 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L226

Did you really mean 'changedUser'?
newScope: string,

Check warning on line 227 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L227

Did you really mean 'newScope'?
oldScope: string,

Check warning on line 228 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L228

Did you really mean 'oldScope'?
changedGroup: CometChat.Group

Check warning on line 229 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L229

Did you really mean 'changedGroup'?
) => {
console.log("onGroupMemberScopeChanged", {
message,
changedUser,

Check warning on line 233 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L233

Did you really mean 'changedUser'?
newScope,

Check warning on line 234 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L234

Did you really mean 'newScope'?
oldScope,

Check warning on line 235 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L235

Did you really mean 'oldScope'?
changedGroup,

Check warning on line 236 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L236

Did you really mean 'changedGroup'?
});
},
onMemberAddedToGroup: (
message: CometChat.Action,
userAdded: CometChat.User,

Check warning on line 241 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L241

Did you really mean 'userAdded'?
addedby: CometChat.User,

Check warning on line 242 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L242

Did you really mean 'addedby'?
addedTo: CometChat.Group

Check warning on line 243 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L243

Did you really mean 'addedTo'?
) => {
console.log("onMemberAddedToGroup", {
message,
userAdded,

Check warning on line 247 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L247

Did you really mean 'userAdded'?
addedby,

Check warning on line 248 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L248

Did you really mean 'addedby'?
addedTo,

Check warning on line 249 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L249

Did you really mean 'addedTo'?
});
},
})
Expand Down Expand Up @@ -375,7 +375,7 @@
| **onMessagePinned(message: CometChat.BaseMessage)** | This event is triggered when a message is pinned in a user/group conversation. Broadcast to everyone in that conversation. |
| **onMessageUnpinned(message: CometChat.BaseMessage)** | This event is triggered when a message is unpinned in a user/group conversation. |
| **onMessageSaved(message: CometChat.BaseMessage)** | This event is triggered when the logged-in user saves a message. Private and delivered to that user's **other** devices only. |
| **onMessageUnsaved(message: CometChat.BaseMessage)** | This event is triggered when the logged-in user unsaves a message. |

Check warning on line 378 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L378

Did you really mean 'unsaves'?

To add the `MessageListener`:

Expand All @@ -388,23 +388,23 @@
onTextMessageReceived: (textMessage: CometChat.TextMessage) => {
console.log("Text message received successfully", textMessage);
},
onMediaMessageReceived: (mediaMessage: CometChat.MediaMessage) => {

Check warning on line 391 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L391

Did you really mean 'mediaMessage'?
console.log("Media message received successfully", mediaMessage);

Check warning on line 392 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L392

Did you really mean 'mediaMessage'?
},
onCustomMessageReceived: (customMessage: CometChat.CustomMessage) => {

Check warning on line 394 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L394

Did you really mean 'customMessage'?
console.log("Custom message received successfully", customMessage);

Check warning on line 395 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L395

Did you really mean 'customMessage'?
},
onMessagesDelivered: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 397 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L397

Did you really mean 'messageReceipt'?
console.log("Message Delivered", messageReceipt);

Check warning on line 398 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L398

Did you really mean 'messageReceipt'?
},
onMessagesRead: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Read", messageReceipt);

Check warning on line 401 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L401

Did you really mean 'messageReceipt'?
},
onTypingStarted: (typingIndicator: CometChat.TypingIndicator) => {

Check warning on line 403 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L403

Did you really mean 'typingIndicator'?
console.log("Typing Started", typingIndicator);

Check warning on line 404 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L404

Did you really mean 'typingIndicator'?
},
onTypingEnded: (typingIndicator: CometChat.TypingIndicator) => {
console.log("Typing Ended", typingIndicator);

Check warning on line 407 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L407

Did you really mean 'typingIndicator'?
},
onMessageDeleted: (message: CometChat.BaseMessage) => {
console.log("Message Deleted", message);
Expand All @@ -427,8 +427,8 @@
onMessageReactionRemoved: (reaction: CometChat.ReactionEvent) => {
console.log("Message Reaction removed", reaction);
},
onCardMessageReceived: (cardMessage: CometChat.CardMessage) => {

Check warning on line 430 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L430

Did you really mean 'cardMessage'?
console.log("Card message received", cardMessage);

Check warning on line 431 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L431

Did you really mean 'cardMessage'?
},
onMessagePinned: (message: CometChat.BaseMessage) => {
console.log("Message pinned", message);
Expand Down Expand Up @@ -541,7 +541,7 @@

<Note>
Pin and unpin are **conversation-wide** — every participant receives them.
Save and unsave are **private multi-device**: they reach the saving user's

Check warning on line 544 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/real-time-listeners.mdx#L544

Did you really mean 'unsave'?
other sessions, not the device that performed the save, which already has the
message resolved from the `saveMessage()` promise. Each callback carries the
full updated message, so `getPinnedAt()` / `getSavedAt()` are readable without
Expand Down Expand Up @@ -641,7 +641,7 @@

## Offline listeners

With offline support enabled (SDK 4.2.0 or newer), these listeners report what the SDK does on the device rather than events from the server. Each is documented with examples on its own page.
With offline support enabled (SDK 4.2.1 or newer), these listeners report what the SDK does on the device rather than events from the server. Each is documented with examples on its own page.

| Listener | What it reports | Details |
|---|---|---|
Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/retrieve-conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 60 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L60

Did you really mean 'conversationRequest'?
.setLimit(limit)
.build();
```
Expand All @@ -67,7 +67,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 70 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L70

Did you really mean 'conversationRequest'?
.setLimit(limit)
.build();
```
Expand All @@ -84,8 +84,8 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationType: string = "group",

Check warning on line 87 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L87

Did you really mean 'conversationType'?
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 88 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L88

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setConversationType(conversationType)
.build();
Expand All @@ -95,8 +95,8 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationType = "group";

Check warning on line 98 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L98

Did you really mean 'conversationType'?
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 99 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L99

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setConversationType(conversationType)
.build();
Expand All @@ -115,7 +115,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| conversationType | `getConversationType()` | `string` | Type of conversation (`"user"` or `"group"`) |

Check warning on line 118 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L118

Did you really mean 'conversationType'?

### With User and Group Tags

Expand All @@ -125,7 +125,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 128 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L128

Did you really mean 'conversationRequest'?
.setLimit(limit)
.withUserAndGroupTags(true)
.build();
Expand All @@ -135,7 +135,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 138 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L138

Did you really mean 'conversationRequest'?
.setLimit(limit)
.withUserAndGroupTags(true)
.build();
Expand All @@ -150,7 +150,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| conversationWith tags | `getConversationWith().getTags()` | `string[]` | Tags associated with the user or group in the conversation |

Check warning on line 153 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L153

Did you really mean 'conversationWith'?

### Set User Tags

Expand All @@ -160,8 +160,8 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
userTags: Array<String> = ["tag1"],

Check warning on line 163 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L163

Did you really mean 'userTags'?
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 164 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L164

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setUserTags(userTags)
.build();
Expand All @@ -171,8 +171,8 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let userTags = ["tag1"];

Check warning on line 174 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L174

Did you really mean 'userTags'?
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 175 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L175

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setUserTags(userTags)
.build();
Expand All @@ -187,7 +187,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| conversationWith tags | `getConversationWith().getTags()` | `string[]` | Tags associated with the user in the conversation |

Check warning on line 190 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L190

Did you really mean 'conversationWith'?

### Set Group Tags

Expand All @@ -197,8 +197,8 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
groupTags: Array<String> = ["tag1"],

Check warning on line 200 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L200

Did you really mean 'groupTags'?
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 201 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L201

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setGroupTags(groupTags)
.build();
Expand All @@ -208,8 +208,8 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let groupTags = ["tag1"];

Check warning on line 211 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L211

Did you really mean 'groupTags'?
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 212 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L212

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setGroupTags(groupTags)
.build();
Expand All @@ -224,7 +224,7 @@

| Field | Getter | Return Type | Description |
|-------|--------|-------------|-------------|
| conversationWith tags | `getConversationWith().getTags()` | `string[]` | Tags associated with the group in the conversation |

Check warning on line 227 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L227

Did you really mean 'conversationWith'?

### With Tags

Expand All @@ -234,7 +234,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 237 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L237

Did you really mean 'conversationRequest'?
.setLimit(limit)
.withTags(true)
.build();
Expand All @@ -244,7 +244,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 247 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L247

Did you really mean 'conversationRequest'?
.setLimit(limit)
.withTags(true)
.build();
Expand All @@ -267,8 +267,8 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
tags: Array<String> = ["archivedChat"],

Check warning on line 270 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L270

Did you really mean 'archivedChat'?
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 271 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L271

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setTags(tags)
.build();
Expand All @@ -278,8 +278,8 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let tags = ["archivedChat"];

Check warning on line 281 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L281

Did you really mean 'archivedChat'?
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 282 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L282

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setTags(tags)
.build();
Expand All @@ -302,7 +302,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 305 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L305

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setIncludeBlockedUsers(true)
.build();
Expand All @@ -313,7 +313,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 316 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L316

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setIncludeBlockedUsers(true)
.build();
Expand All @@ -333,7 +333,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 336 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L336

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setWithBlockedInfo(true)
.build();
Expand All @@ -344,7 +344,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 347 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L347

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setWithBlockedInfo(true)
.build();
Expand All @@ -361,7 +361,7 @@
| blockedByMe | `getConversationWith().getBlockedByMe()` | `boolean` | Whether the logged-in user has blocked this user |
| hasBlockedMe | `getConversationWith().getHasBlockedMe()` | `boolean` | Whether this user has blocked the logged-in user |
| blockedByMeAt | `getConversationWith().blockedByMeAt` | `number` | Timestamp when the logged-in user blocked this user |
| blockedAt | `getConversationWith().blockedAt` | `number` | Timestamp when this user was blocked |

Check warning on line 364 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L364

Did you really mean 'blockedAt'?

### Search Conversations

Expand All @@ -379,7 +379,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 382 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L382

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setSearchKeyword("Hiking")
.build();
Expand All @@ -390,7 +390,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 393 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L393

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setSearchKeyword("Hiking")
.build();
Expand All @@ -416,7 +416,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 419 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L419

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setUnread(true)
.build();
Expand All @@ -427,7 +427,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 430 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L430

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setUnread(true)
.build();
Expand All @@ -443,7 +443,7 @@
**Unread counts in large groups:** Unread message counts are calculated only for groups with up to 300 members. See [Properties and Constraints](/articles/properties-and-constraints#users-and-groups).
</Note>

### Hide Agentic Conversations

Check warning on line 446 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L446

Did you really mean 'Agentic'?

Use `setHideAgentic(true)` to exclude AI agent conversations from the list.

Expand All @@ -451,7 +451,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 454 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L454

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setHideAgentic(true)
.build();
Expand All @@ -462,7 +462,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 465 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L465

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setHideAgentic(true)
.build();
Expand All @@ -472,7 +472,7 @@

</Tabs>

### Only Agentic Conversations

Check warning on line 475 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L475

Did you really mean 'Agentic'?

Use `setOnlyAgentic(true)` to fetch only AI agent conversations.

Expand All @@ -480,7 +480,7 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 483 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L483

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setOnlyAgentic(true)
.build();
Expand All @@ -490,7 +490,7 @@
<Tab title="JavaScript">
```javascript
let limit = 30;
let conversationRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 493 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L493

Did you really mean 'conversationRequest'?
.setLimit(limit)
.setOnlyAgentic(true)
.build();
Expand All @@ -515,12 +515,12 @@
<Tab title="TypeScript">
```typescript
let limit: number = 30,
conversationsRequest: CometChat.ConversationsRequest = new CometChat.ConversationsRequestBuilder()

Check warning on line 518 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L518

Did you really mean 'conversationsRequest'?
.setLimit(limit)
.build();

conversationsRequest.fetchNext().then(
(conversationList: CometChat.Conversation[]) => {

Check warning on line 523 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L523

Did you really mean 'conversationList'?
console.log("Conversations list received:", conversationList);
},
(error: CometChat.CometChatException) => {
Expand Down Expand Up @@ -567,11 +567,11 @@
<Tabs>
<Tab title="TypeScript">
```typescript
let conversationWith: string = "UID",

Check warning on line 570 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L570

Did you really mean 'conversationWith'?
tags: Array<String> = ["archivedChat"],

Check warning on line 571 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L571

Did you really mean 'archivedChat'?
conversationType: string = "user";

Check warning on line 572 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L572

Did you really mean 'conversationType'?

CometChat.tagConversation(conversationWith, conversationType, tags).then(

Check warning on line 574 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L574

Did you really mean 'conversationType'?
(conversation: CometChat.Conversation) => {
console.log("conversation", conversation);
},
Expand Down Expand Up @@ -629,8 +629,8 @@
<Tabs>
<Tab title="TypeScript">
```typescript
let conversationWith: string = "UID",

Check warning on line 632 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L632

Did you really mean 'conversationWith'?
conversationType: string = "user";

Check warning on line 633 in sdk/react-native/retrieve-conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/retrieve-conversations.mdx#L633

Did you really mean 'conversationType'?

CometChat.getConversation(conversationWith, conversationType).then(
(conversation: CometChat.Conversation) => {
Expand Down Expand Up @@ -665,7 +665,7 @@

The `getConversation()` method returns a single [`Conversation`](/sdk/reference/entities#conversation) object.

To read the cached copy first, pass a `ConversationDetailsListener` as the third argument. With offline support on, `onCachedConversation` delivers the cached copy only when there is one, then `onServerConversation` delivers the live copy. Offline, the read then ends with `onError` (`FAILED_TO_FETCH`); when nothing is cached, `onError` is the only callback. Requires SDK 4.2.0. See [Show Cached Data](/sdk/react-native/offline-cached-data).
To read the cached copy first, pass a `ConversationDetailsListener` as the third argument. With offline support on, `onCachedConversation` delivers the cached copy only when there is one, then `onServerConversation` delivers the live copy. Offline, the read then ends with `onError` (`FAILED_TO_FETCH`); when nothing is cached, `onError` is the only callback. Requires SDK 4.2.1. See [Show Cached Data](/sdk/react-native/offline-cached-data).

## Convert Messages to Conversations

Expand Down
9 changes: 6 additions & 3 deletions ui-kit/react-native/call-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

### Callback Props

#### onError

Check warning on line 49 in ui-kit/react-native/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/call-buttons.mdx#L49

Did you really mean 'onError'?

Fires on internal errors (network failure, auth issue, SDK exception).

Expand All @@ -69,12 +69,13 @@

### Global UI Events

`CometChatUIEventHandler` emits events subscribable from anywhere in the application. Add listeners and remove them on cleanup.

Check warning on line 72 in ui-kit/react-native/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/call-buttons.mdx#L72

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
| `ccCallRejected` | The local user cancels the outgoing call before it is answered (not when the receiver rejects) | `{ call }` |
| `ccCallFailed` | Error occurs during the initiated call | `{ call }` |
| `ccCallFailed` | A one-to-one call could not be placed | `{ call }` |
| `ccCallFailed` | A group call was refused because the device is offline (`ERROR_NO_INTERNET`) | `{ error }` |
| `ccOutgoingCall` | User initiates a voice/video call | `{ call }` |

When to use: sync external UI with call state changes. For example, update a call status indicator, show notifications, or log call events.
Expand All @@ -94,8 +95,10 @@
ccOutgoingCall: ({ call }) => {
console.log("Outgoing call:", call);
},
ccCallFailed: ({ call }) => {
console.log("Call failed:", call);
// `call` is set for a one-to-one call that could not be placed;
// `error` is set when a group call is refused because the device is offline.
ccCallFailed: ({ call, error }) => {
console.log("Call failed:", call ?? error);
},
});

Expand Down
4 changes: 4 additions & 0 deletions ui-kit/react-native/compact-message-composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
export default CompactComposerDemo;
```

<Note>
With [offline support](/ui-kit/react-native/offline-support) on, text messages and voice notes sent without a connection are queued and sent when the connection returns, and the tray survives leaving the chat and an app restart. A file picked into the tray while offline is not queued: its upload fails, and you retry it from the tile once the connection returns. Editing a sent message needs a connection; a failed edit goes to `onError`. See [Sending messages](/ui-kit/react-native/offline-support#sending-messages) and [Attachments and media](/ui-kit/react-native/offline-support#attachments-and-media).
</Note>

---

## Actions and Events
Expand Down Expand Up @@ -84,7 +88,7 @@
}
```

#### onError

Check warning on line 91 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L91

Did you really mean 'onError'?

Fires on internal errors (network failure, auth issue, SDK exception).

Expand Down Expand Up @@ -158,7 +162,7 @@

### Global UI Events

`CometChatUIEventHandler` emits events subscribable from anywhere in the application. Add listeners and remove them on cleanup.

Check warning on line 165 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L165

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -291,7 +295,7 @@
|------|------|---------|-------------|
| `maxLines` | `number` | `5` | Maximum lines before scrolling is enabled |
| `minInputHeight` | `number` | `40` | Minimum height for the input in pixels |
| `maxInputHeight` | `number` | `144` (calculated from maxLines) | Maximum height for the input. Overrides `maxLines` if both provided |

Check warning on line 298 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L298

Did you really mean 'maxLines'?

```tsx lines
<CometChatCompactMessageComposer
Expand Down Expand Up @@ -320,9 +324,9 @@
| `addAttachmentOptions` | `CometChatMessageComposerAction[]` | Additional attachment options appended to defaults |
| `textFormatters` | `CometChatTextFormatter[]` | Text formatting in composer |

### textFormatters

Check warning on line 327 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L327

Did you really mean 'textFormatters'?

Custom text formatters for the composer input. To configure the existing Mentions look and feel check out [CometChatMentionsFormatter](/ui-kit/react-native/mentions-formatter-guide).

Check warning on line 329 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L329

Did you really mean 'formatters'?

```tsx lines
import {
Expand Down Expand Up @@ -350,7 +354,7 @@
);
```

### attachmentOptions

Check warning on line 357 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L357

Did you really mean 'attachmentOptions'?

Override the default attachment options with custom actions.

Expand Down Expand Up @@ -564,7 +568,7 @@
```

<Note>
The slot lives inside the toolbar, so it only renders while the toolbar is visible — `enableRichTextEditor` `true` and `hideRichTextFormattingOptions` `false`, which are the defaults. It does not appear in the native text selection menu. For a complete walkthrough with a swatch picker, see the [Text Color guide](/ui-kit/react-native/guide-text-color).

Check warning on line 571 in ui-kit/react-native/compact-message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/compact-message-composer.mdx#L571

Did you really mean 'walkthrough'?
</Note>

<Warning>
Expand Down
16 changes: 16 additions & 0 deletions ui-kit/react-native/conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,21 @@
"callbacks": {
"onItemPress": "(conversation: CometChat.Conversation) => void",
"onItemLongPress": "(conversation: CometChat.Conversation) => void",
"onBack": "() => void",

Check warning on line 31 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L31

Did you really mean 'onBack'?
"onSelection": "(conversations: Array<CometChat.Conversation>) => void",

Check warning on line 32 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L32

Did you really mean 'onSelection'?
"onError": "(error: CometChat.CometChatException) => void",

Check warning on line 33 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L33

Did you really mean 'onError'?
"onEmpty": "() => void",

Check warning on line 34 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L34

Did you really mean 'onEmpty'?
"onLoad": "(list: CometChat.Conversation[]) => void",

Check warning on line 35 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L35

Did you really mean 'onLoad'?
"onSearchBarClicked": "() => void",
"onSearchTextChanged": "(searchText: string) => void",
"onSubmit": "(conversations: Array<CometChat.Conversation>) => void"

Check warning on line 38 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L38

Did you really mean 'onSubmit'?
},
"visibility": {
"hideBackButton": { "type": "boolean", "default": true },
"hideHeader": { "type": "boolean", "default": false },
"pinConversationOptionVisibility": { "type": "boolean", "default": true },
"hideError": { "type": "boolean", "default": false },
"hideOfflineNotices": { "type": "boolean", "default": false, "note": "Offline support only" },
"receiptsVisibility": { "type": "boolean", "default": true },
"hideSubmitButton": { "type": "boolean", "default": true },
"usersStatusVisibility": { "type": "boolean", "default": true },
Expand Down Expand Up @@ -74,7 +75,7 @@
"SearchView": "() => JSX.Element"
},
"formatting": {
"textFormatters": {

Check warning on line 78 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L78

Did you really mean 'textFormatters'?
"type": "CometChatTextFormatter[]",
"default": "default formatters from data source"
}
Expand Down Expand Up @@ -209,6 +210,10 @@
export default ConversationsDemo;
```

<Note>
With [offline support](/ui-kit/react-native/offline-support) on, the list shows saved conversations at once, shows **Connect to load chats** when it is offline with nothing saved, and marks a conversation whose last message is waiting to send or failed. See [Lists](/ui-kit/react-native/offline-support#lists).
</Note>

---

## Filtering Conversations
Expand Down Expand Up @@ -287,7 +292,7 @@
}
```

#### onSelection

Check warning on line 295 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L295

Did you really mean 'onSelection'?

Fires when conversations are selected/deselected in selection mode. Requires `selectionMode` to be set.

Expand All @@ -309,7 +314,7 @@
}
```

#### onError

Check warning on line 317 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L317

Did you really mean 'onError'?

Fires on internal errors (network failure, auth issue, SDK exception).

Expand All @@ -328,7 +333,7 @@
}
```

#### onEmpty

Check warning on line 336 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L336

Did you really mean 'onEmpty'?

Fires when the conversation list is empty.

Expand All @@ -344,7 +349,7 @@
}
```

#### onLoad

Check warning on line 352 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L352

Did you really mean 'onLoad'?

Fires when the list is successfully fetched and loaded.

Expand All @@ -363,7 +368,7 @@

### Global UI Events

`CometChatUIEventHandler` emits events subscribable from anywhere in the application. Subscribe in a `useEffect` and unsubscribe on cleanup.

Check warning on line 371 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L371

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -425,7 +430,7 @@
</Warning>

`pinConversationOptionVisibility` (default `true`) hides the option on one particular list. It is
**ANDed** with the Dashboard flag, so the option renders only when both allow it.

Check warning on line 433 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L433

Did you really mean 'ANDed'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -790,7 +795,7 @@
}
```

### addOptions

Check warning on line 798 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L798

Did you really mean 'addOptions'?

Extends the default context menu actions with additional options.

Expand Down Expand Up @@ -818,7 +823,7 @@
}
```

### datePattern

Check warning on line 826 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L826

Did you really mean 'datePattern'?

Custom date format for displaying timestamps.

Expand Down Expand Up @@ -846,13 +851,13 @@
return `${day}, ${hours}:${minutes}`;
};

return <CometChatConversations datePattern={generateDateString} />;

Check warning on line 854 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L854

Did you really mean 'datePattern'?
}
```

### textFormatters

Check warning on line 858 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L858

Did you really mean 'textFormatters'?

Custom text formatters for the conversation subtitle.

Check warning on line 860 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L860

Did you really mean 'formatters'?

<Frame>
<img src="/images/55490fa9-mentions_conversations-1a7b847ad0af53848dc106216ac64e74.png" />
Expand Down Expand Up @@ -919,11 +924,11 @@
function MinimalConversations() {
return (
<CometChatConversations
receiptsVisibility={false}

Check warning on line 927 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L927

Did you really mean 'receiptsVisibility'?
usersStatusVisibility={false}
groupTypeVisibility={false}
deleteConversationOptionVisibility={false}
hideHeader={true}

Check warning on line 931 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L931

Did you really mean 'hideHeader'?
/>
);
}
Expand Down Expand Up @@ -1128,7 +1133,7 @@

---

### hideError

Check warning on line 1136 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L1136

Did you really mean 'hideError'?

Hides the error state view.

Expand All @@ -1150,6 +1155,17 @@

---

### hideOfflineNotices

With [offline support](/ui-kit/react-native/offline-support) running, hides the one-line offline notices the list shows for the whole session, such as unsent messages that were lost when the offline cache was rebuilt. Has no effect with offline support off.

| | |
| --- | --- |
| Type | `boolean` |
| Default | `false` |

---

### hideSubmitButton

Hides the submit button when selection mode is enabled.
Expand Down Expand Up @@ -1277,7 +1293,7 @@

| | |
| --- | --- |
| Type | `(searchText: string) => void` |

Check warning on line 1296 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L1296

Did you really mean 'searchText'?
| Default | `undefined` |

---
Expand All @@ -1295,7 +1311,7 @@

### onSubmit

Callback fired when the submit button is pressed. Requires `selectionMode` to be set.

Check warning on line 1314 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L1314

Did you really mean 'selectionMode'?

| | |
| --- | --- |
Expand Down Expand Up @@ -1372,12 +1388,12 @@

### textFormatters

Custom text formatters for the conversation subtitle.

Check warning on line 1391 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L1391

Did you really mean 'formatters'?

| | |
| --- | --- |
| Type | `CometChatTextFormatter[]` |
| Default | Default formatters from data source |

Check warning on line 1396 in ui-kit/react-native/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/conversations.mdx#L1396

Did you really mean 'formatters'?

---

Expand Down
12 changes: 12 additions & 0 deletions ui-kit/react-native/core-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@

| Components | Functionality |
| --- | --- |
| [Message List](/ui-kit/react-native/message-list) | Adds Pin, Unpin, Save, and Unsave to the message options when the features are enabled. |

Check warning on line 160 in ui-kit/react-native/core-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/core-features.mdx#L160

Did you really mean 'Unsave'?
| [Pinned Messages](/ui-kit/react-native/pinned-messages) | A screen of the messages pinned in a conversation, opened from the [Message Header](/ui-kit/react-native/message-header). |
| [Saved Messages](/ui-kit/react-native/saved-messages) | A personal screen of the current user's saved messages across all conversations. |

Expand All @@ -169,7 +169,7 @@
| features.ux.messages.saved.limit | Saved messages per user |
| features.ux.conversations.pinned.limit | Pinned conversations per user |

The UI Kit reads these settings at login. When a user reaches a cap, the kit shows a toast that names the exact limit — no extra handling required. For a full walkthrough, see the [Pin & Save Messages guide](/ui-kit/react-native/guide-pin-and-save-messages).

Check warning on line 172 in ui-kit/react-native/core-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/react-native/core-features.mdx#L172

Did you really mean 'walkthrough'?

## Pin Conversations

Expand Down Expand Up @@ -291,6 +291,18 @@

For a comprehensive understanding and guide on implementing and using the Groups feature in CometChat, refer to the detailed guide on [Groups](/ui-kit/react-native/groups).

## Offline Support

Offline Support keeps chat usable without a network. Chats and messages the user has opened appear at once from the device, messages sent offline are queued and go out when the connection returns, and failed messages offer Retry and Delete. It is **off by default**: turn it on with the `offline` setting in `UIKitSettings` (UI Kit 5.6.0 and Chat SDK 4.2.1 or later).

| Components | Functionality |
| --- | --- |
| [Conversations](/ui-kit/react-native/conversations), [Users](/ui-kit/react-native/users), [Groups](/ui-kit/react-native/groups), [Group Members](/ui-kit/react-native/group-members) | Show saved rows first and merge the server's page in place; offline with nothing saved, show **Connect to load …**. |
| [Message List](/ui-kit/react-native/message-list) | Shows saved history, marks queued and failed messages, and offers **Connect to load more** at a blocked edge. |
| [Message Composer](/ui-kit/react-native/message-composer) | Queues messages sent offline and keeps staged attachments across restarts. Files picked into the tray while offline are not queued: retry their upload once online. |

See [Offline Support](/ui-kit/react-native/offline-support) for setup, native dependencies and the full behavior.

---

## Next Steps
Expand Down
Loading