Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

stream-react-native

БесплатноБез исполняемых скриптовНе проверен

Build, integrate, audit, or upgrade Stream Chat, Video, and Feeds in React Native CLI and Expo / Expo Router apps, and answer RN / Expo how-to questions about…

GetStreamот GetStream★ 21 звезда на GitHub

Об этом скилле

Stream React Native

Docs

Don't write Stream SDK code from memory. APIs change between majors, so your memory is stale. Read the docs first, via the getstream docs command:

cat $(getstream docs chat-sdk/react-native)/INDEX.md

Client and UI: chat-sdk/react-native, video/react-native, activity-feeds/react-native; the low-level Chat client (permissions, query filters, channel types) is chat/react-native. Node.js backend (token route, webhooks): chat/node, activity-feeds/node, moderation/node. Previous Chat majors are available too (chat-sdk/react-native/v).

Chat SDK majors can differ deeply (state, channel lists, threads, configuration). Before any Chat code, pin the installed major, read only that major's docs (never the unversioned id on trust), and treat SDK names in this skill and in your memory as leads to confirm there - follow chat-versions.md.

Video versions its docs too: getstream docs list shows which video/react-native major is Latest and which is a beta. Read the installed @stream-io/video-react-native-sdk major and pass the versioned id (video/react-native/v) when it isn't the Latest one.

A how-to question needs no setup: answer it from the pinned major's docs and say which major the answer is for.

Setup

Start with getstream init (binds the working dir to a Stream app, existing or new) and getstream env --target expo (writes EXPO_PUBLIC_STREAM_API_KEY to .env). getstream env writes .env to the folder getstream init ran in, which isn't always the app folder (an app scaffolded in a subfolder): move it next to the app's package.json, or Metro never reads it. A bare RN CLI app has no env target: put the public API key in the app's config, never the secret.

For new apps, Expo (npx create-expo-app@latest, Expo Router) is the default unless the user asks for RN CLI. In an existing app, read the lane before editing: Expo or RN CLI (app.json / app.config.*, ios/ + android/), the Expo SDK version, Expo Router or React Navigation, and the package manager. Keep all of them. In a non-empty directory that isn't an RN app, ask before scaffolding a child app there.

Install the SDKs, with the peers listed on each product's Installation page:

  • Chat: stream-chat plus one wrapper for the lane - stream-chat-expo on Expo, stream-chat-react-native on RN CLI, never both (see chat-versions.md for which major)
  • Video: @stream-io/video-react-native-sdk (both lanes)
  • Feeds: @stream-io/feeds-react-native-sdk (both lanes)
  • Server-side: @stream-io/node-sdk

Don't bump an already-installed Stream major. Expo apps use npx expo install so versions match the Expo SDK.

Writes through getstream api (product configuration: channel types, feed groups, moderation policies, and the Video label below) are app-wide. Before the first one, run getstream status and tell the user which app it will change, so a stale CLI binding doesn't write to the wrong (possibly production) app. Ask before each app-wide write, and run it only once the user agrees.

For Video apps, offer to label the use case once (metadata, no runtime effect), and set it once the user agrees:

getstream api UpdateApp --request '{"video_primary_use_case":"livestreaming"}'

Allowed values: video-calling, voice-calling, livestreaming, audio-rooms, ai-agents, live-shopping, other. Derive it from what the app is, not from the call type in use (Whatnot runs on the livestream call type but is live-shopping). Any commerce signal means live-shopping. Unsure means other.

Product configuration (channel types, feed groups, moderation policies) goes through getstream api, with the user's go-ahead as above.

Native setup that costs real runs:

  • Chat and Video ship native code: Expo apps run in a development build (expo-dev-client, npx expo prebuild), never Expo Go. Every native package added later means another prebuild and native build, so decide the full set of capability packages (picker, camera, audio recording, video playback, offline, ringing) before the first build.
  • Babel: on Expo SDK 54+, babel-preset-expo adds the worklets plugin itself - don't create a babel.config.js (a hand-written one can break Metro with Cannot read properties of undefined (reading 'transformFile')). On RN CLI the Reanimated / worklets plugin goes last in babel.config.js.
  • Expo SDK 57 pins [email protected] + [email protected], a pair that crashes on animation paths (not at boot, so a clean launch proves nothing). Require reanimated >= 4.5.1 and worklets >= 0.10.2, installed after the other npx expo install calls, which re-pin the bad pair. Check the installed versions, not the launch.
  • With Reanimated 4 and Chat, set "reanimated": { "staticFeatureFlags": { "FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS": false } } in the root package.json (the default breaks bottom sheets, the message overlay, an
Полный SKILL.md на GitHub

Установить stream-react-native в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

ai-integration.mdchat-versions.mddesign-matching.mdsendbird-mapping.mdsendbird-migration.mdsimulator-verification.mdstream-agents.md

FAQ

Что делает скилл stream-react-native?

Build, integrate, audit, or upgrade Stream Chat, Video, and Feeds in React Native CLI and Expo / Expo Router apps, and answer RN / Expo how-to questions about them. Scaffold a new app, add Stream to an existing project, review an integration, upgrade an SDK major, migrate from Sendbird (@sendbird/chat, @sendbird/uikit-react-native), or build an AI assistant / ChatGPT-style app on the Chat SDK's ai-components (replacing the deprecated @stream-io/chat-react-native-ai), or one on Stream Agents. Covers channel lists, messages, MessageComposer, threads, the attachment picker, audio messages, offline support, push notifications, video calls, CallContent and ParticipantView, ringing, livestreams, audio rooms, StreamFeeds activity / timeline / notification feeds, comments, reactions, follows, and theming or matching a design, with stream-chat-react-native, stream-chat-expo, @stream-io/video-react-native-sdk, and @stream-io/feeds-react-native-sdk. React Native and Expo only - web React uses stream-react.

Как установить скилл stream-react-native?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл stream-react-native запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить stream-react-native с