User Interface Preview

- Chat Header – recipient details and optional actions.
- Message List – live history for the user or group.
- Message Composer – send text, media, and reactions.
Step-by-Step Guide
Step 1: Add the Chat Header
Show profile details and optional actions like calls or info.Step 2: Render the Message List
Stream chat history and real-time messages for the selected user or group.Step 3: Include the Composer
Send text, media, and reactions. The composer hides automatically when blocked/read-only.Implementation
Fetch the user (or group) and render Header + Message List + Composer. The composer hides automatically when a user is blocked or read-only.<ChatScreen uid="cometchat-uid-1" onBack={() => navigation.goBack()} />.
Run the app
Tips
- Pass
uidfor one-to-one orguidfor group chat; only one should be set at a time. - Add calling by installing
@cometchat/calls-sdk-react-nativeand enabling call buttons in the header. - Wrap the screen in your navigator to handle back navigation (e.g., React Navigation
Stack).