config.json file handles basic feature toggles. For deeper customizations, modify the Zustand store, theme configuration, or component props directly.
Understanding the Customization Architecture
The React Native UI Kit Builder uses these main files for customization:The
config.json file is the source of truth for your Builder configuration. You can update it manually or by scanning a QR code with new settings.Using the Configuration Store
The Zustand store manages your Builder configuration at runtime. Access it anywhere in your app to read or update settings.Reading Configuration
Updating Configuration at Runtime
Runtime changes to the store are not persisted by default. Use AsyncStorage to save and restore configurations.
Theme Customization
Applying Builder Theme to UI Kit
The Builder configuration includes style settings that should be applied to the CometChat UI Kit theme. ThegetFontFamily helper used below is defined in Custom Font Integration; import it from wherever you place that utility.
The UI Kit’s
typography theme tokens are keyed by named text styles (for example heading4) and each has bold, medium, and regular variants whose fontFamily is a string—not a single top-level fontFamily. To apply a Builder-selected font across the UI, set the fontFamily on the relevant typography tokens. See Component Styling for the exact token structure and Theming for the theme provider overview.Custom Color Palette
Override the default colors by modifying the theme object:Custom Font Integration
Step 1: Add Font Files
Add your custom font files to the project’sassets/fonts/ directory (and reference them from the platform font folders described in the Directory Structure guide):
- iOS:
ios/<App>/Resources/Fonts/ - Android:
android/app/src/main/assets/fonts/
Step 2: Register Fonts
- React Native CLI (bare)
- Expo (development build)
Native modules in React Native 0.60+ are linked automatically by autolinking, so the legacy Then run:Rebuild the app (
react-native link command is no longer used. To copy your font assets into the native projects, declare them in react-native.config.js:npm run ios / npm run android) so the fonts are bundled.Step 3: Map Font Family
Create a font mapping utility.getFontFamily returns the base font-family string for a given Builder font name, so it can be assigned to the UI Kit’s fontFamily typography tokens:
The exact font-family name must match the PostScript name of the installed font (iOS) or the file name without extension (Android). Verify the registered names after running the registration step above.
Component-Level Customizations
Conditional Rendering Based on Features
Use the configuration store to conditionally render UI elements:Customizing Message Options
Control which message options appear based on configuration:Persisting Configuration
Save Configuration to AsyncStorage
Auto-save on Configuration Changes
Layout Customization
Dynamic Tab Configuration
Going Beyond the Builder
The Builder config covers feature toggles, layout, and high-level theme tokens. For deeper customization, drop down to the UI Kit’s own customization layers—these work the same whether or not you use the Builder:Message Templates
Override how message bubbles render with
CometChatMessageTemplate and the templates prop on the message list.Component Styling & View Slots
Style individual components and inject custom views (headers, subtitles, list items) via theme overrides and slot props.
Theme Overrides
Customize colors, typography tokens, and light/dark modes through
CometChatThemeProvider.Builder Settings Reference
Full schema for every
config.json key the Builder exports.