AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-uikit-react-native |
| Key components | CometChatUsers, CometChatGroups, CometChatConversations |
| Init | CometChatUIKit.init(UIKitSettings) then CometChatUIKit.login("UID") |
| Purpose | Unified new chat entry point for starting 1:1 or group conversations |
| Sample app | GitHub |
| Related | Users · Groups · All Guides |
Components
| Component / Class | Role |
|---|---|
CometChatUsers | Displays list of available users for chat creation |
CometChatGroups | Shows available groups for joining |
CometChatConversations | Main conversations list |
Integration Steps
1. New Chat Screen with Tabs
Create a screen with tabs to switch between Users and Groups lists.2. Add New Chat Button to Conversations
Add a floating action button or header option to launch the new chat screen.3. Create Conversation Screen
A dedicated screen for creating new 1:1 conversations by selecting a user.4. Navigation Setup
Configure navigation to include all new chat related screens.Feature Matrix
| Feature | Component / Method |
|---|---|
| User selection | CometChatUsers with onItemPress |
| Group selection | CometChatGroups with onItemPress |
| Join public group | CometChat.joinGroup() |
| Navigate to chat | navigation.navigate('Messages', { user/group }) |
| Tab navigation | Custom tabs with state management |
Next Steps
Conversations
Display and manage conversation lists.
Users
Display and manage user lists.
All Guides
Browse all feature and formatter guides.
Sample App
Full working sample application on GitHub.