AI Integration Quick Reference
AI Integration Quick Reference
Overview of Changes
Integration
In v4, integration was straightforward due to composite components likeCometChatConversationsWithMessages. This single component provided end-to-end functionality including listing conversations, handling clicks, loading messages, and supporting threaded messages. However, customization required deep understanding of internal flows, and configurations mixed custom view props, behavioral props, and style props.
With v5, composite components are replaced with smaller, modular components:
CometChatConversationsCometChatMessageHeaderCometChatMessageListCometChatMessageComposer
Learn how to build a complete messaging UI using the v5 UI Kit by following the Getting Started guide.
Components
v4 Components
v5 Components
Theming
v4 Theming
In v4, theming required instantiating multiple objects and passing them through constructors:V4 UI Kit
v5 Theming
In v5, theming uses direct static property assignment:V5 UI Kit
For detailed guidance on theming, refer to:
Properties
In v5, the approach to properties has been refined:- Style properties — Replaced by a native theming system based on direct property access
- Configuration properties — Removed due to modular architecture; developers have direct control over each component
- Custom view properties — Restructured for consistency with unified naming:
itemView,leadingView,trailingView,subtitleView,titleView
Property Changes
Conversations
New Properties
Renamed Properties
Removed Properties
Users
New Properties
Renamed Properties
Removed Properties
Groups
New Properties
Renamed Properties
Group Members
New Properties
Renamed Properties
Removed Properties
Message Header
New Properties
Renamed Properties
Removed Properties
Message List
New Properties
Renamed Properties
Removed Properties
Message Composer
New Properties
Renamed Properties
Removed Properties
Next Steps
Getting Started
Fresh v5 setup guide for iOS
Components Overview
Explore all v5 prebuilt UI components
Theme Introduction
New direct property-based theming system
Color Resources
Customize colors and dark mode