From 986dd78073b6a65870124790e120e1933dbd9555 Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Tue, 9 Jun 2026 10:12:22 +0530 Subject: [PATCH 1/6] docs: add loadLastAgentConversation prop to CometChatMessageList - Add prop to AI Quick Reference JSON - Add prop entry in Props section (boolean, default: false) - Enables automatic loading of the most recent agent conversation --- ui-kit/react-native/message-list.mdx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ui-kit/react-native/message-list.mdx b/ui-kit/react-native/message-list.mdx index b05f327a6..78f49ab39 100644 --- a/ui-kit/react-native/message-list.mdx +++ b/ui-kit/react-native/message-list.mdx @@ -71,7 +71,8 @@ description: "Scrollable list of sent and received messages with text, media, re "suggestedMessages": { "type": "string[]", "note": "Predefined prompts for AI assistant chats" }, "aiAssistantTools": { "type": "CometChatAIAssistantTools", "note": "Tool actions for AI assistant" }, "quickReactionList": { "type": "string[]", "default": "predefined reactions" }, - "streamingSpeed": { "type": "number", "default": "undefined", "note": "AI response streaming speed in ms" } + "streamingSpeed": { "type": "number", "default": "undefined", "note": "AI response streaming speed in ms" }, + "loadLastAgentConversation": { "type": "boolean", "default": false, "note": "Automatically load the most recent agent conversation" } }, "viewSlots": { "HeaderView": "({ user, group, id }) => JSX.Element", @@ -1039,6 +1040,17 @@ Hides the translate message option. --- +### loadLastAgentConversation + +Automatically loads the most recent agent conversation when set to `true`. + +| | | +| --- | --- | +| Type | `boolean` | +| Default | `false` | + +--- + ### LoadingView Custom component displayed during the loading state. From ff690f5437721ab68610cfe47c58fa0940d516d0 Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Tue, 9 Jun 2026 15:10:51 +0530 Subject: [PATCH 2/6] docs(ui-kit/react-native): add loadLastAgentConversation prop to MessageList - Add loadLastAgentConversation prop documentation to props table with type, default, and description - Remove duplicate loadLastAgentConversation entry from optional props section - Add new code example demonstrating how to use loadLastAgentConversation to resume recent agent conversations - Consolidate prop definitions to eliminate redundancy and improve documentation clarity --- ui-kit/react-native/message-list.mdx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/ui-kit/react-native/message-list.mdx b/ui-kit/react-native/message-list.mdx index 78f49ab39..c7d45a537 100644 --- a/ui-kit/react-native/message-list.mdx +++ b/ui-kit/react-native/message-list.mdx @@ -61,6 +61,7 @@ description: "Scrollable list of sent and received messages with text, media, re "alignment": { "type": "MessageListAlignmentType", "values": ["leftAligned", "standard"], "default": "standard" }, "scrollToBottomOnNewMessage": { "type": "boolean", "default": false }, "startFromUnreadMessages": { "type": "boolean", "default": false }, + "loadLastAgentConversation": { "type": "boolean", "default": false, "note": "Loads the most recent existing agent conversation on start" }, "streamingSpeed": { "type": "number", "default": "undefined", "note": "AI response streaming speed in ms" } }, "sound": { @@ -71,8 +72,7 @@ description: "Scrollable list of sent and received messages with text, media, re "suggestedMessages": { "type": "string[]", "note": "Predefined prompts for AI assistant chats" }, "aiAssistantTools": { "type": "CometChatAIAssistantTools", "note": "Tool actions for AI assistant" }, "quickReactionList": { "type": "string[]", "default": "predefined reactions" }, - "streamingSpeed": { "type": "number", "default": "undefined", "note": "AI response streaming speed in ms" }, - "loadLastAgentConversation": { "type": "boolean", "default": false, "note": "Automatically load the most recent agent conversation" } + "streamingSpeed": { "type": "number", "default": "undefined", "note": "AI response streaming speed in ms" } }, "viewSlots": { "HeaderView": "({ user, group, id }) => JSX.Element", @@ -673,6 +673,23 @@ function NavigateToMessage() { } ``` +### Load last agent conversation + +Resume the most recent AI agent conversation on start: + +```tsx lines +import { CometChatMessageList } from "@cometchat/chat-uikit-react-native"; + +function AgentChat() { + return ( + + ); +} +``` + --- ## Styling From e3b3f76e9e2619d0a56260bed2fb5b1c411811d2 Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Wed, 24 Jun 2026 18:00:41 +0530 Subject: [PATCH 3/6] fix(react-native): fix broken getting-started links and add orphaned pages to nav - Replace /ui-kit/react-native/getting-started (404) with /ui-kit/react-native/overview in campaigns.mdx and property-changes.mdx - Add calling-integration to Features group in docs.json (before call-features) - Add property-changes to Migration Guide group in docs.json Co-Authored-By: Claude Sonnet 4.6 --- docs.json | 4 +++- ui-kit/react-native/campaigns.mdx | 2 +- ui-kit/react-native/property-changes.mdx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs.json b/docs.json index bd1ec7e32..ab4ded30f 100644 --- a/docs.json +++ b/docs.json @@ -1110,6 +1110,7 @@ "ui-kit/react-native/extensions" ] }, + "ui-kit/react-native/calling-integration", "ui-kit/react-native/call-features", "ui-kit/react-native/campaigns" ] @@ -1173,7 +1174,8 @@ { "group": "Migration Guide", "pages": [ - "ui-kit/react-native/upgrading-from-v4" + "ui-kit/react-native/upgrading-from-v4", + "ui-kit/react-native/property-changes" ] }, "ui-kit/react-native/troubleshooting", diff --git a/ui-kit/react-native/campaigns.mdx b/ui-kit/react-native/campaigns.mdx index ff6d26c24..d45e81990 100644 --- a/ui-kit/react-native/campaigns.mdx +++ b/ui-kit/react-native/campaigns.mdx @@ -6,7 +6,7 @@ description: "Deliver targeted, rich notifications to users via an in-app notifi CometChat Campaigns enables you to send rich, interactive notifications to users through an in-app notification feed. Each notification is rendered as a native card using the **CometChat Cards** library — supporting images, text, buttons, layouts, and interactive actions. -Before proceeding, ensure you have completed the [UI Kit integration](/ui-kit/react-native/getting-started) and the [Dashboard Setup](/campaigns#setup-flow) for Campaigns. +Before proceeding, ensure you have completed the [UI Kit integration](/ui-kit/react-native/overview) and the [Dashboard Setup](/campaigns#setup-flow) for Campaigns. diff --git a/ui-kit/react-native/property-changes.mdx b/ui-kit/react-native/property-changes.mdx index b13b0c8de..3057ff978 100644 --- a/ui-kit/react-native/property-changes.mdx +++ b/ui-kit/react-native/property-changes.mdx @@ -663,7 +663,7 @@ description: "Comprehensive reference of new, renamed, and removed properties fo Customize colors, fonts, and styles with the theme provider - + Set up the v5 UI Kit from scratch From 493d15094bb9b48110b4ad276bf3ac67b91f81ac Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Wed, 24 Jun 2026 18:44:26 +0530 Subject: [PATCH 4/6] fix(campaigns): suppress vale false positives on camelCase JSON props Co-Authored-By: Claude Sonnet 4.6 --- ui-kit/react-native/campaigns.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui-kit/react-native/campaigns.mdx b/ui-kit/react-native/campaigns.mdx index d45e81990..55a0d33b9 100644 --- a/ui-kit/react-native/campaigns.mdx +++ b/ui-kit/react-native/campaigns.mdx @@ -53,6 +53,7 @@ It does not execute actions, manage message state, or call any SDK methods. When ### Card Schema JSON Example + ```json { "version": "1.0", @@ -90,6 +91,7 @@ It does not execute actions, manage message state, or call any SDK methods. When } } ``` + The above JSON renders as: From d33ee13e9546fe2c5c037558a210deb082787172 Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Wed, 24 Jun 2026 18:47:37 +0530 Subject: [PATCH 5/6] fix(message-list): fix vale warnings on description and JSON code block Co-Authored-By: Claude Sonnet 4.6 --- ui-kit/react-native/message-list.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-kit/react-native/message-list.mdx b/ui-kit/react-native/message-list.mdx index c7d45a537..e48d11c6d 100644 --- a/ui-kit/react-native/message-list.mdx +++ b/ui-kit/react-native/message-list.mdx @@ -1,8 +1,9 @@ --- title: "Message List" -description: "Scrollable list of sent and received messages with text, media, reactions, read receipts, threaded replies, and AI features." +description: "Display sent and received messages with text, media, reactions, read receipts, threaded replies, and AI features." --- + ```json { "component": "CometChatMessageList", @@ -118,6 +119,7 @@ description: "Scrollable list of sent and received messages with text, media, re } } ``` + ## Where It Fits From fdf347299ac84110d6f2d1377ff77425ffd619bb Mon Sep 17 00:00:00 2001 From: Suraj Chauhan Date: Thu, 25 Jun 2026 10:26:01 +0530 Subject: [PATCH 6/6] fix(vale): replace HTML comments with MDX-compatible {/* vale off/on */} MDX does not allow syntax, causing parse failures on deploy. Co-Authored-By: Claude Sonnet 4.6 --- ui-kit/react-native/campaigns.mdx | 4 ++-- ui-kit/react-native/message-list.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-kit/react-native/campaigns.mdx b/ui-kit/react-native/campaigns.mdx index 55a0d33b9..820f4ad06 100644 --- a/ui-kit/react-native/campaigns.mdx +++ b/ui-kit/react-native/campaigns.mdx @@ -53,7 +53,7 @@ It does not execute actions, manage message state, or call any SDK methods. When ### Card Schema JSON Example - +{/* vale off */} ```json { "version": "1.0", @@ -91,7 +91,7 @@ It does not execute actions, manage message state, or call any SDK methods. When } } ``` - +{/* vale on */} The above JSON renders as: diff --git a/ui-kit/react-native/message-list.mdx b/ui-kit/react-native/message-list.mdx index e48d11c6d..6b59dce52 100644 --- a/ui-kit/react-native/message-list.mdx +++ b/ui-kit/react-native/message-list.mdx @@ -3,7 +3,7 @@ title: "Message List" description: "Display sent and received messages with text, media, reactions, read receipts, threaded replies, and AI features." --- - +{/* vale off */} ```json { "component": "CometChatMessageList", @@ -119,7 +119,7 @@ description: "Display sent and received messages with text, media, reactions, re } } ``` - +{/* vale on */} ## Where It Fits