Skip to content
Open
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions ui-kit/react-native/message-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -672,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 (
<CometChatMessageList
user={agentUser}
loadLastAgentConversation={true}
/>
);
}
```

---

## Styling
Expand Down Expand Up @@ -1039,6 +1057,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.
Expand Down