Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@
"ui-kit/react-native/component-styling",
"ui-kit/react-native/message-bubble-styling",
"ui-kit/react-native/localize",
"ui-kit/react-native/rtl-support",
"ui-kit/react-native/sound-manager"
]
},
Expand Down
19 changes: 19 additions & 0 deletions ui-kit/react-native/ai-assistant-chat-history.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

***

##### onClose

Check warning on line 128 in ui-kit/react-native/ai-assistant-chat-history.mdx

View check run for this annotation

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

Vale.Spelling

'onClose' looks like code; format it as code.

Function activated when the close button is clicked, usually to exit the chat history view.

Expand All @@ -145,7 +145,7 @@

***

##### onError

Check warning on line 148 in ui-kit/react-native/ai-assistant-chat-history.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

Function invoked when an error occurs during message fetching or any other operation.

Expand Down Expand Up @@ -234,6 +234,25 @@
| LoadingStateView | Custom loading state view component to be displayed while fetching chat history | `LoadingStateView={() => <YourCustomLoader />}` |


---

## Layout Direction

`CometChatAIAssistantChatHistory` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatAIAssistantChatHistory` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatAIAssistantChatHistory layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps
Expand Down
19 changes: 19 additions & 0 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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -69,7 +69,7 @@

### 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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -186,6 +186,25 @@

---

## Layout Direction

`CometChatCallButtons` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallButtons` and everything inside it. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatCallButtons layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
19 changes: 19 additions & 0 deletions ui-kit/react-native/call-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
}
```

#### onBack

Check warning on line 145 in ui-kit/react-native/call-logs.mdx

View check run for this annotation

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

Vale.Spelling

'onBack' looks like code; format it as code.

Fires when the back button in the app bar is pressed.

Expand All @@ -165,7 +165,7 @@
}
```

#### onError

Check warning on line 168 in ui-kit/react-native/call-logs.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -188,7 +188,7 @@
}
```

#### onLoad

Check warning on line 191 in ui-kit/react-native/call-logs.mdx

View check run for this annotation

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

Vale.Spelling

'onLoad' looks like code; format it as code.

Fires when the list is successfully fetched and loaded.

Expand All @@ -208,7 +208,7 @@
}
```

#### onEmpty

Check warning on line 211 in ui-kit/react-native/call-logs.mdx

View check run for this annotation

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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Fires when the call log list is empty.

Expand Down Expand Up @@ -501,6 +501,25 @@

---

## Layout Direction

`CometChatCallLogs` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallLogs` and everything inside it, including the menu it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatCallLogs layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
21 changes: 21 additions & 0 deletions ui-kit/react-native/compact-message-composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand Down Expand Up @@ -162,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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -295,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

Vale.Spelling

'maxLines' looks like code; format it as code.

```tsx lines
<CometChatCompactMessageComposer
Expand Down Expand Up @@ -324,7 +324,7 @@
| `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

Vale.Spelling

'textFormatters' looks like code; format it as code.

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).

Expand Down Expand Up @@ -354,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

Vale.Spelling

'attachmentOptions' looks like code; format it as code.

Override the default attachment options with custom actions.

Expand Down Expand Up @@ -731,6 +731,27 @@

---

## Layout Direction

`CometChatCompactMessageComposer` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCompactMessageComposer` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

The text in the input follows the language being typed, and in an empty composer the cursor sits on the side of the keyboard's language. See [Message composer](/ui-kit/react-native/rtl-support#message-composer).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatCompactMessageComposer layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/react-native/conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -292,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

Vale.Spelling

'onSelection' looks like code; format it as code.

Fires when conversations are selected/deselected in selection mode. Requires `selectionMode` to be set.

Expand All @@ -314,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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -333,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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Fires when the conversation list is empty.

Expand All @@ -349,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

Vale.Spelling

'onLoad' looks like code; format it as code.

Fires when the list is successfully fetched and loaded.

Expand All @@ -368,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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -430,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

Vale.Spelling

Did you really mean 'ANDed'?

<Tabs>
<Tab title="TypeScript">
Expand Down Expand Up @@ -795,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

Vale.Spelling

'addOptions' looks like code; format it as code.

Extends the default context menu actions with additional options.

Expand Down Expand Up @@ -823,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

Vale.Spelling

'datePattern' looks like code; format it as code.

Custom date format for displaying timestamps.

Expand Down Expand Up @@ -855,7 +855,7 @@
}
```

### 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

Vale.Spelling

'textFormatters' looks like code; format it as code.

Custom text formatters for the conversation subtitle.

Expand Down Expand Up @@ -1056,7 +1056,7 @@

---

### datePattern

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

View check run for this annotation

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

Vale.Spelling

'datePattern' looks like code; format it as code.

Custom function to format conversation timestamps.

Expand Down Expand Up @@ -1133,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

Vale.Spelling

'hideError' looks like code; format it as code.

Hides the error state view.

Expand All @@ -1144,7 +1144,7 @@

---

### hideHeader

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

View check run for this annotation

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

Vale.Spelling

'hideHeader' looks like code; format it as code.

Hides the entire header bar.

Expand Down Expand Up @@ -1188,6 +1188,17 @@

---

### layoutDirection

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

View check run for this annotation

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

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global `layoutDirection`. See [RTL Support](/ui-kit/react-native/rtl-support).

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set (inherits) |

---

### LeadingView

Custom renderer for the avatar / left section.
Expand All @@ -1210,7 +1221,7 @@

---

### onBack

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

View check run for this annotation

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

Vale.Spelling

'onBack' looks like code; format it as code.

Callback fired when the back button is pressed.

Expand All @@ -1221,7 +1232,7 @@

---

### onEmpty

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

View check run for this annotation

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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Callback fired when the conversation list is empty.

Expand All @@ -1232,7 +1243,7 @@

---

### onError

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

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

Callback fired when the component encounters an error.

Expand Down Expand Up @@ -1265,7 +1276,7 @@

---

### onLoad

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

View check run for this annotation

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

Vale.Spelling

'onLoad' looks like code; format it as code.

Callback fired when conversations are loaded.

Expand Down Expand Up @@ -1298,7 +1309,7 @@

---

### onSelection

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

View check run for this annotation

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

Vale.Spelling

'onSelection' looks like code; format it as code.

Callback fired when conversations are selected/deselected. Requires `selectionMode` to be set.

Expand All @@ -1309,7 +1320,7 @@

---

### onSubmit

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

View check run for this annotation

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

Vale.Spelling

'onSubmit' looks like code; format it as code.

Callback fired when the submit button is pressed. Requires `selectionMode` to be set.

Expand All @@ -1320,7 +1331,7 @@

---

### receiptsVisibility

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

View check run for this annotation

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

Vale.Spelling

'receiptsVisibility' looks like code; format it as code.

Shows/hides message read/delivery receipt indicators.

Expand All @@ -1342,7 +1353,7 @@

---

### selectionMode

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

View check run for this annotation

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

Vale.Spelling

'selectionMode' looks like code; format it as code.

Enables single or multi-select mode on list items.

Expand All @@ -1353,7 +1364,7 @@

---

### searchText

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

View check run for this annotation

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

Vale.Spelling

'searchText' looks like code; format it as code.

Current search text value for the search bar.

Expand Down Expand Up @@ -1386,7 +1397,7 @@

---

### textFormatters

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

View check run for this annotation

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

Vale.Spelling

'textFormatters' looks like code; format it as code.

Custom text formatters for the conversation subtitle.

Expand Down Expand Up @@ -1430,6 +1441,25 @@

---

## Layout Direction

`CometChatConversations` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatConversations` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatConversations layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
19 changes: 19 additions & 0 deletions ui-kit/react-native/group-members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@

| Methods | Type | Description |
| -------------------- | -------------- | ------------------------------------------------------------------------------------------------- |
| **setLimit** | number | sets the number of group members that can be fetched in a single request, suitable for pagination |

Check warning on line 65 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'setLimit' looks like code; format it as code.
| **setSearchKeyword** | string | used for fetching group members matching the passed string |
| **setScopes** | Array\<string> | used for fetching group members based on multiple scopes |

Check warning on line 67 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'setScopes' looks like code; format it as code.

```tsx lines
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -192,7 +192,7 @@
}
```

#### onBack

Check warning on line 195 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onBack' looks like code; format it as code.

Fires when the back button in the app bar is pressed. Requires `showBackButton={true}`.

Expand All @@ -212,7 +212,7 @@
}
```

#### onSelection

Check warning on line 215 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onSelection' looks like code; format it as code.

Fires when members are selected/deselected in selection mode. Requires `selectionMode` to be set.

Expand All @@ -239,7 +239,7 @@
}
```

#### onSubmit

Check warning on line 242 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onSubmit' looks like code; format it as code.

Fires when the submit selection button is pressed. Requires `selectionMode` to be set.

Expand All @@ -260,7 +260,7 @@
}
```

#### onError

Check warning on line 263 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -284,7 +284,7 @@
}
```

#### onLoad

Check warning on line 287 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onLoad' looks like code; format it as code.

Fires when the list is successfully fetched and loaded.

Expand All @@ -305,7 +305,7 @@
}
```

#### onEmpty

Check warning on line 308 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Fires when the member list is empty.

Expand All @@ -330,7 +330,7 @@

### Global UI Events

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

Check warning on line 333 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -698,7 +698,7 @@
return <CometChatGroupMembers group={group} options={setMyOptions} />;
```

### addOptions

Check warning on line 701 in ui-kit/react-native/group-members.mdx

View check run for this annotation

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

Vale.Spelling

'addOptions' looks like code; format it as code.

Extends the default context menu actions with additional options.

Expand Down Expand Up @@ -812,6 +812,25 @@

---

## Layout Direction

`CometChatGroupMembers` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatGroupMembers` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatGroupMembers group={group} layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/react-native/groups.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
}
```

#### onSelection

Check warning on line 175 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onSelection' looks like code; format it as code.

Fires when groups are selected/deselected in selection mode. Requires `selectionMode` to be set.

Expand All @@ -194,7 +194,7 @@
}
```

#### onEmpty

Check warning on line 197 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Fires when the group list fetch returns zero results.

Expand All @@ -208,7 +208,7 @@
}
```

#### onError

Check warning on line 211 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -227,7 +227,7 @@
}
```

#### onLoad

Check warning on line 230 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onLoad' looks like code; format it as code.

Fires when groups are successfully fetched and loaded.

Expand All @@ -246,7 +246,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 249 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -642,7 +642,7 @@

---

### hideError

Check warning on line 645 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'hideError' looks like code; format it as code.

Hides the error state view.

Expand All @@ -653,7 +653,7 @@

---

### hideHeader

Check warning on line 656 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'hideHeader' looks like code; format it as code.

Hides the entire header bar.

Expand All @@ -675,7 +675,7 @@

---

### hideSearch

Check warning on line 678 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'hideSearch' looks like code; format it as code.

Hides the search bar.

Expand Down Expand Up @@ -708,6 +708,17 @@

---

### layoutDirection

Check warning on line 711 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'layoutDirection' looks like code; format it as code.

Lays this component out left to right or right to left, overriding the UI Kit's global `layoutDirection`. See [RTL Support](/ui-kit/react-native/rtl-support).

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set (inherits) |

---

### LeadingView

Custom renderer for the avatar / left section.
Expand All @@ -730,7 +741,7 @@

---

### onBack

Check warning on line 744 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onBack' looks like code; format it as code.

Callback fired when the back button is pressed.

Expand All @@ -741,7 +752,7 @@

---

### onEmpty

Check warning on line 755 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onEmpty' looks like code; format it as code.

Callback fired when the group list is empty.

Expand All @@ -752,7 +763,7 @@

---

### onError

Check warning on line 766 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

Callback fired when the component encounters an error.

Expand Down Expand Up @@ -785,7 +796,7 @@

---

### onLoad

Check warning on line 799 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onLoad' looks like code; format it as code.

Callback fired when groups are loaded.

Expand All @@ -796,7 +807,7 @@

---

### onSelection

Check warning on line 810 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onSelection' looks like code; format it as code.

Callback fired when groups are selected/deselected. Requires `selectionMode` to be set.

Expand All @@ -807,7 +818,7 @@

---

### onSubmit

Check warning on line 821 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'onSubmit' looks like code; format it as code.

Callback fired when the submit button is pressed. Requires `selectionMode` to be set.

Expand All @@ -818,7 +829,7 @@

---

### searchKeyword

Check warning on line 832 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'searchKeyword' looks like code; format it as code.

Pre-fills the search and filters the group list.

Expand All @@ -840,7 +851,7 @@

---

### selectionMode

Check warning on line 854 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'selectionMode' looks like code; format it as code.

Enables single or multi-select mode on list items.

Expand Down Expand Up @@ -895,7 +906,7 @@

---

### addOptions

Check warning on line 909 in ui-kit/react-native/groups.mdx

View check run for this annotation

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

Vale.Spelling

'addOptions' looks like code; format it as code.

Function to append additional menu items to the default context menu.

Expand Down Expand Up @@ -950,6 +961,25 @@

---

## Layout Direction

`CometChatGroups` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatGroups` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatGroups layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
23 changes: 23 additions & 0 deletions ui-kit/react-native/incoming-call.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

### Callback Props

#### onAccept

Check warning on line 85 in ui-kit/react-native/incoming-call.mdx

View check run for this annotation

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

Vale.Spelling

'onAccept' looks like code; format it as code.

Fires when the accept button is pressed.

Expand All @@ -109,7 +109,7 @@
}
```

#### onDecline

Check warning on line 112 in ui-kit/react-native/incoming-call.mdx

View check run for this annotation

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

Vale.Spelling

'onDecline' looks like code; format it as code.

Fires when the decline button is pressed.

Expand All @@ -135,7 +135,7 @@
}
```

#### onError

Check warning on line 138 in ui-kit/react-native/incoming-call.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -162,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/incoming-call.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -370,6 +370,29 @@

---

## Layout Direction

`CometChatIncomingCall` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatIncomingCall` and everything inside it. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatIncomingCall
call={call}
onDecline={() => setCallReceived(false)}
layoutDirection="rtl"
/>
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
7 changes: 7 additions & 0 deletions ui-kit/react-native/llms-react-native-v5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
1:1. Non-negotiables:
- **No CSS, no `className`, no `<div>`/`<a href>`, no `document.*`/`window.*`.** Styling is
`StyleSheet` objects and the theme API — see [Theming](/ui-kit/react-native/theme).
- **Native peer deps are required**, not optional. As of

Check warning on line 38 in ui-kit/react-native/llms-react-native-v5.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'deps'?
`@cometchat/chat-uikit-react-native@5.5.2` the peers are `@cometchat/chat-sdk-react-native`,
`@react-native-clipboard/clipboard`, `react-native-gesture-handler`, `react-native-svg`,
`react-native-video`, `react-native-localize` and `react-native-safe-area-context`
Expand All @@ -44,13 +44,13 @@
infer it.
- **Async-storage at `^2.1.2`, no extra Gradle repository.** Install
`@react-native-async-storage/async-storage@^2.1.2` in the base step (the range the Calls SDK
declares, so it works for chat and calling). 2.x autolinks, so the old `local_repo` entry

Check warning on line 47 in ui-kit/react-native/llms-react-native-v5.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'autolinks'?
in `android/build.gradle` is not needed.
- **Calling peers go in at their declared ranges.** `@cometchat/calls-sdk-react-native` declares
`@react-native-async-storage/async-storage@^2.1.2`, `react-native-webrtc@^155.0.1`,
`react-native-background-timer@^2.4.1`, `react-native-performance@^5.1.2`,
`react-native-url-polyfill@^2.0.0` and `react-native-svg@^15.12.0` — install them at those
ranges in the same command (use `react-native-svg@^15.16.0`, the first whose podspec targets iOS 15.1) (unpinned latest majors fail with `ERESOLVE`). See

Check warning on line 53 in ui-kit/react-native/llms-react-native-v5.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'podspec'?
[Calling Integration](/ui-kit/react-native/calling-integration).
- **One screen per route.** Use a stack navigator and a real hardware/gesture back button —
do not stack components on a single screen the way a web layout would.
Expand All @@ -63,6 +63,12 @@
register with `ChatConfigurator.enable(...)` **after `CometChatUIKit.login()`** (login re-runs
`ChatConfigurator.init()`, discarding anything registered earlier). See *Customization &
extensibility* below.
- **RTL is `layoutDirection` (UI Kit 5.7.0+), and it covers only the kit.** The default, `"auto"`, follows the
app's direction (`I18nManager.isRTL`). `layoutDirection` in `UIKitSettings` sets it for every
kit component without `forceRTL` or a restart; a component's own `layoutDirection` prop
(`"ltr" | "rtl"`) wins for that component. The kit never changes the app's own screens. In
custom views use `marginStart`/`paddingEnd`/`start`, and `useCometChatLayoutDirection()`
instead of `I18nManager.isRTL`. See [RTL Support](/ui-kit/react-native/rtl-support).

## Hot path — usually no fetch needed
For a plain "add chat" the install, `init → login → render`, and the core drop-in props are
Expand All @@ -86,6 +92,7 @@
- [Events](/ui-kit/react-native/events)
- [Sound Manager](/ui-kit/react-native/sound-manager)
- [Localization](/ui-kit/react-native/localize)
- [RTL Support](/ui-kit/react-native/rtl-support)
- [Extensions](/ui-kit/react-native/extensions)
- [Troubleshooting](/ui-kit/react-native/troubleshooting)

Expand Down
11 changes: 8 additions & 3 deletions ui-kit/react-native/localize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| Override strings | `translations={{ "en": { CHATS: "My Chats" } }}` — key on the language code the kit resolves to |
| Add language | `translations={{ "custom": { CHATS: "Welcome" } }}` with `selectedLanguage="custom"` |
| Use in components | `const { t } = useCometChatTranslation(); t("CHATS")` |
| Supported languages | 18: en, zh, zh-tw, es, hi, ru, pt, ms, fr, de, sv, lt, hu, it, ko, ja, nl, tr (plus `en-US`, `en-GB`, `en-IN` aliases of `en`) |
| Supported languages | 19: en, ar, zh, zh-tw, es, hi, ru, pt, ms, fr, de, sv, lt, hu, it, ko, ja, nl, tr (plus `en-US`, `en-GB`, `en-IN` aliases of `en`) |

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'zh'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'ru'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'sv'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'lt'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'hu'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'ko'?

Check warning on line 19 in ui-kit/react-native/localize.mdx

View check run for this annotation

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

Vale.Spelling

Did you really mean 'nl'?
| Dependency | Requires `react-native-localize` package for auto-detection |

</Accordion>
Expand All @@ -37,6 +37,7 @@
| Language | Code |
| --- | --- |
| English | `en` |
| Arabic | `ar` |
| Chinese (Simplified) | `zh` |
| Chinese (Traditional) | `zh-tw` |
| Spanish | `es` |
Expand Down Expand Up @@ -81,6 +82,10 @@

---

<Note>
Language and layout direction are separate settings. Choosing Arabic translates the UI Kit; the layout follows the app's direction unless you set `layoutDirection`. See [RTL Support](/ui-kit/react-native/rtl-support).
</Note>

## Provider Props

| Prop | Type | Description |
Expand Down Expand Up @@ -215,7 +220,7 @@

### Offline Strings

UI Kit 5.6.0 adds the texts of [offline support](/ui-kit/react-native/offline-support), translated in all 18 languages. They appear only while offline support is running. Override them like any other key. Keys ending in `_ONE` and `_OTHER` are the singular and plural forms of one text, chosen from the count for the current language; `{count}` is replaced with the number, so override both forms. See [Offline States and Texts](/ui-kit/react-native/offline-support#offline-states-and-texts) for where each text appears.
UI Kit 5.6.0 adds the texts of [offline support](/ui-kit/react-native/offline-support), translated in all 18 languages of that release; Arabic, added in UI Kit 5.7.0, includes them too. They appear only while offline support is running. Override them like any other key. Keys ending in `_ONE` and `_OTHER` are the singular and plural forms of one text, chosen from the count for the current language; `{count}` is replaced with the number, so override both forms. See [Offline States and Texts](/ui-kit/react-native/offline-support#offline-states-and-texts) for where each text appears.

| Key | English text |
| --- | --- |
Expand Down Expand Up @@ -264,7 +269,7 @@

Below are the things which the developer can customize:

* **Set a supported language** (`selectedLanguage`): The developer can set a language out of the 18 supported languages.
* **Set a supported language** (`selectedLanguage`): The developer can set a language out of the 19 supported languages.
* **Customize default localization strings** (`translations`): The developer can customize default localization strings for a particular language.
* **Add custom strings** (`translations`): A developer can add custom strings in the localization for a particular language.
* **Add a new language** (`translations`): The developer can add completely new languages.
Expand Down
21 changes: 21 additions & 0 deletions ui-kit/react-native/message-composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
}
```

#### onError

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

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand Down Expand Up @@ -251,7 +251,7 @@

### Global UI Events

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

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

View check run for this annotation

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

Vale.Spelling

Did you really mean 'subscribable'?

| Event | Fires when | Payload |
| --- | --- | --- |
Expand Down Expand Up @@ -306,7 +306,7 @@
| `attachmentOptions` | `CometChatMessageComposerAction[]` | Default attachment options list |
| `textFormatters` | `CometChatTextFormatter[]` | Text formatting in composer |

### textFormatters

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

View check run for this annotation

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

Vale.Spelling

'textFormatters' looks like code; format it as code.

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).

Expand Down Expand Up @@ -340,7 +340,7 @@
<img src="/images/b2f00911-mentions_message_composer-b1d1dd7961bc3c2953e7439bb516200b.png" />
</Frame>

### attachmentOptions

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

View check run for this annotation

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

Vale.Spelling

'attachmentOptions' looks like code; format it as code.

Override the default attachment options with custom actions.

Expand Down Expand Up @@ -618,6 +618,27 @@

---

## Layout Direction

`CometChatMessageComposer` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatMessageComposer` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

The text in the input follows the language being typed, and in an empty composer the cursor sits on the side of the keyboard's language. See [Message composer](/ui-kit/react-native/rtl-support#message-composer).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatMessageComposer layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
19 changes: 19 additions & 0 deletions ui-kit/react-native/message-header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

### Callback Props

#### onError

Check warning on line 50 in ui-kit/react-native/message-header.mdx

View check run for this annotation

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

Vale.Spelling

'onError' looks like code; format it as code.

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

Expand All @@ -71,7 +71,7 @@
}
```

#### onBack

Check warning on line 74 in ui-kit/react-native/message-header.mdx

View check run for this annotation

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

Vale.Spelling

'onBack' looks like code; format it as code.

Fires when the back button in the app bar is pressed. Requires `showBackButton={true}`.

Expand Down Expand Up @@ -624,6 +624,25 @@

---

## Layout Direction

`CometChatMessageHeader` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatMessageHeader` and everything inside it, including the sheets, menus and dialogs it opens. See [RTL Support](/ui-kit/react-native/rtl-support).

<Tabs>
<Tab title="TypeScript">
```tsx
<CometChatMessageHeader layoutDirection="rtl" />
```
</Tab>
</Tabs>

| | |
| --- | --- |
| Type | `"ltr" \| "rtl"` |
| Default | Not set: inherits from the UI Kit component around it, then the global setting |

---

## Next Steps

<CardGroup cols={2}>
Expand Down
Loading