Cometchat React Native Bare Patterns logo

Cometchat React Native Bare Patterns

Organization
cometchat
cometchat-react-native-bare-patterns

Bare React Native CLI wiring for the CometChat UI Kit v5 — pod install, Android manifest permissions, and the gesture-handler import that must be the first line of your entry file. Triggers: CometChat React Native CLI, pod install CometChat, RN chat crashes on Android build, gesture handler crash release build, AndroidManifest CometChat permissions.

Overview

Publishercometchat
Repositorycometchat-skills
Skill namecometchat-react-native-bare-patterns
Stars
109
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cometchat on GitHub. Read the source before you install it.

Installation

Install the Cometchat React Native Bare Patterns AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-react-native-bare-patterns .claude/skills/cometchat-react-native-bare-patterns
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cometchat React Native Bare Patterns in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cometchat React Native Bare Patterns on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cometchat React Native Bare Patterns is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ground truth: @cometchat/chat-uikit-react-native@5 + catalog rn-v5.json. Docs: /ui-kit/react-native/react-native-cli-integration · react-native-conversation · react-native-tab-based-chat.

Companion skills (read first)

  • 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.

Use this skill when

  • the project has real ios/ and android/ directories and no expo key in app.json
  • "add chat to my React Native CLI app" · "Android build fails after installing CometChat"

Prerequisites & install

bash
npm 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.

The four native steps that are not optional

1. react-native-gesture-handler must be the FIRST import of your entry file

js
import '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.

2. iOS Podfile needs modular headers for two transitive pods

@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-kit depends upon SPTPersistentCache and DVAssetLoaderDelegate, which do not define modules.

Add these inside your target in ios/Podfile, then re-run pod install:

ruby
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.

3. Android permissions in the manifest

android/app/src/main/AndroidManifest.xmlINTERNET 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.

Calling on bare RN

bash
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 react-native-url-polyfill@2.0.0 \
  react-native-webrtc@124.0.7
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:

xml
<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.

After any native change — rebuild, don't reload

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.

What is the same as Expo

Everything above the native layer: providers, init → login → render, components, theming, navigation. Only install and native config differ.

Common pitfalls

  1. gesture-handler imported late — works in debug, crashes in release.
  2. Missing the Podfile modular-headers linespod install fails, naming two unfamiliar transitive pods.
  3. Skipping pod install after adding a package — iOS fails to link.
  4. Reloading instead of rebuilding after a native change.
  5. Copying Expo's app.json permission block into a bare app — it does nothing there.

Verify it works

  • index.js starts with the gesture-handler import.
  • iOS and Android both build clean from scratch.
  • npm run verify:fences:rn-v5 is green.
  • On device: chat renders, gestures respond, the composer survives the keyboard. Test a release build too — the gesture-handler ordering bug only shows there.

Frequently asked questions

What does the Cometchat React Native Bare Patterns AI skill do?

Bare React Native CLI wiring for the CometChat UI Kit v5 — pod install, Android manifest permissions, and the gesture-handler import that must be the first line of your entry file. Triggers: CometChat React Native CLI, pod install CometChat, RN chat crashes on Android build, gesture handler crash release build, AndroidManifest CometChat permissions.

Why use Cometchat React Native Bare Patterns on TypingMind?

Because you install it once and use it with any model. Cometchat React Native Bare Patterns is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cometchat React Native Bare Patterns in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-react-native-bare-patterns. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cometchat React Native Bare Patterns?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cometchat React Native Bare Patterns?

As many as you like. As long as a model supports skills, you can use Cometchat React Native Bare Patterns with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cometchat React Native Bare Patterns AI skill free?

Yes. It is published on GitHub by cometchat under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇