AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Package | @cometchat/chat-uikit-react-native |
| Framework | React Native CLI |
| Components | CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer |
| Layout | Single chat window — no conversation list |
| Prerequisite | Complete React Native CLI Integration Steps 1–4 first |
| Pattern | Support chat, embedded widgets, focused messaging |

What You’re Building
Three components stacked vertically:- Chat header — displays recipient name, avatar, online status, and optional call buttons
- Message list — real-time chat history with scrolling
- Message composer — text input with media, emojis, and send button
App.tsx.
Step 1 — Update App.tsx
The app fetches a user (or group) on mount and renders the three message components.- TypeScript
- JavaScript
App.tsx
CometChat.getUser(UID)fetches the user object from the SDK — you need a real user object, not a manually constructed one- Pass either
userorgroupto the message components, never both - The highlighted constants show where to set the UID or swap to group chat
Switching Between User and Group Chat
To load a group chat instead of one-to-one, replace thegetUser call with getGroup:
Step 2 — Run the Project
- iOS
- Android
Next Steps
Theming
Customize colors, fonts, and styles to match your brand
Components Overview
Browse all prebuilt UI components
React Native CLI Integration
Back to the main setup guide
Core Features
Chat features included out of the box