/cometchat-skills:cometchat-react-native-bare-patternsfrom cometchat-skills
Wires CometChat UI Kit v5 into a bare React Native CLI project: pod install with modular headers, Android manifest permissions, and the gesture-handler import that must be the first line of index.js.
Ships in cometchat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ground truth:
@cometchat/chat-uikit-react-native@5+ catalogrn-v5.json. Docs:/ui-kit/react-native/react-native-cli-integration·react-native-conversation·react-native-tab-based-chat.
cometchat-react-native-core — install, provider chain, init→login→render. Assumed, not repeated here.cometchat-react-native-expo-patterns — the Expo equivalent. Use that one for an Expo project.ios/ and android/ directories and no expo key in app.jsonnpm install @cometchat/chat-uikit-react-native@5 @cometchat/chat-sdk-react-native@4
npm install @react-native-clipboard/clipboard \
react-native-svg react-native-video react-native-localize react-native-gesture-handler \
react-native-safe-area-context @react-native-async-storage/async-storage@^2.1.2 dayjs
cd ios && pod install && cd ..
You own ios/ and android/, so native config is edited directly — the opposite of Expo, where
those directories are generated and hand-edits get overwritten.
react-native-gesture-handler must be the FIRST import of your entry fileimport 'react-native-gesture-handler';
// ...every other import after this
Not at the top of a screen — the very top of index.js, before anything else. Getting this wrong
often works in debug and crashes in release, which is the worst possible failure shape: it passes
local testing and breaks for users.
@cometchat/chat-uikit-react-native is a Swift pod that depends on SPTPersistentCache
and DVAssetLoaderDelegate, neither of which defines a module. On a static-library build —
the React Native default — pod install fails outright:
The Swift pod
react-native-cometchat-ui-kitdepends uponSPTPersistentCacheandDVAssetLoaderDelegate, which do not define modules.
Add these inside your target in ios/Podfile, then re-run pod install:
target 'YourApp' do
pod 'SPTPersistentCache', :modular_headers => true
pod 'DVAssetLoaderDelegate', :modular_headers => true
# ...
end
Both official CometChat sample apps carry exactly these two lines. The integration docs do
not mention them (RN-G14), so a first pod install fails with an error that names two
pods the developer has never heard of.
android/app/src/main/AndroidManifest.xml — INTERNET at minimum; the camera/audio set only if you
add calling. Fetch the exact list from the integration page rather than copying a partial set.
npm install @cometchat/calls-sdk-react-native@5
# 6 REQUIRED peer deps — the calls SDK's declared peerDependencies. Pinned; do NOT float them.
npm install @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 \
react-native-performance@^5.1.2 react-native-svg@^15.12.0 [email protected] \
[email protected]
cd ios && pod install && cd ..
⚠️ react-native-url-polyfill + react-native-performance are bundle-critical (the UIKit
module-scope require()s the calls SDK, so Metro resolves its peers even in a chat-only build). Keep
react-native-performance on 5.x (a floated ^6 breaks later npm install with ERESOLVE).
@react-native-community/netinfo / react-native-callstats are NOT declared peers — do not add them.
iOS permissions go in ios/<YourApp>/Info.plist:
<key>NSCameraUsageDescription</key>
<string>Camera access for video calls</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access for voice/video calls</string>
Simulators cannot capture camera or microphone — verify calls on a real device.
Metro reload only refreshes JavaScript. A new native module, a Gradle edit or a plist change needs a
full rebuild (npx react-native run-ios / run-android). "I installed it and nothing changed" is
almost always a missed rebuild.
Everything above the native layer: providers, init → login → render, components, theming,
navigation. Only install and native config differ.
gesture-handler imported late — works in debug, crashes in release.pod install fails, naming two unfamiliar transitive pods.pod install after adding a package — iOS fails to link.app.json permission block into a bare app — it does nothing there.index.js starts with the gesture-handler import.npm run verify:fences:rn-v5 is green.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skills98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.Other plugins' skills for the same job