cometchat-core

Initializes and configures CometChat UI Kit v6 across React web and React Native apps with a provider pattern.

74|2|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/cometchat/cometchat-skills --skill cometchat-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cometchat-core
Source: https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-core
Command: npx skills add https://github.com/cometchat/cometchat-skills --skill cometchat-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initializes and configures CometChat UI Kit v6 across React web and React Native apps with a provider pattern to guarantee a single initialization and guarded login.

Core Features & Use Cases

  • Centralized init and login orchestration for CometChat UI Kit v6.
  • SSR-safe wiring and environment-variable handling to ensure browser-only usage.
  • Provider-based ready-state gating so UI renders only after setup.

Quick Start

Configure appId and region, then wrap your app in CometChatProvider to enable ready chat rendering.

Frequently Asked Questions about cometchat-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize CometChat UI Kit v6 safely in a React app?

To initialize CometChat UI Kit v6 safely, wrap your application in a provider pattern that manages environment variables and guarantees a single initialization, ensuring the UI renders only after setup completes.

How does the provider pattern handle ready-state gating for chat UI?

The provider pattern handles ready-state gating by blocking UI renders until CometChat initialization and login finish, guaranteeing the chat UI only mounts after the setup completes successfully.

Can I use CometChat UI Kit v6 with React Native and React web?

Yes, you can use CometChat UI Kit v6 with both React web and React Native, using a shared provider pattern to apply centralized initialization and guarded login rules across platforms.

Does CometChat UI Kit v6 support SSR environments?

Yes, CometChat UI Kit v6 supports SSR environments by applying SSR-safe wiring and environment-variable handling to ensure browser-only usage, preventing server-side execution errors during initialization.

Why is my CometChat UI rendering before the initialization completes?

CometChat UI rendering before initialization completes occurs when ready-state gating is missing; wrapping your app in a CometChatProvider ensures non-blocking rendering until setup finishes.