Skip to main content
The 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:
FilePurposeWhen to Modify
config.jsonFeature flags and configuration constantsFunctional changes (enable/disable features)
store.tsZustand store for state managementRuntime configuration updates
Theme objectColors, typography, and stylingUI/visual changes
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:

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 appropriate platform directories:
  • iOS: ios/<App>/Resources/Fonts/
  • Android: android/app/src/main/assets/fonts/
For React Native CLI projects, create or update react-native.config.js:
Then run:

Step 3: Map Font Family

Create a font mapping utility:

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