@cometchat/calls-sdk-react-native

中文文档
5.1.0发布于 2026/11/02https://www.cometchat.com/legal-terms-of-serviceTypeScriptESM + CJS近 30 天下载 2506

CometChat Calls SDK for React Native provides voice and video calling capabilities for React Native applications.

原始使用文档
文档目录7 节
  1. Step 1: Start Metro
  2. Step 2: Build and run your app
  3. Android
  4. iOS
  5. Step 3: Modify your app
  6. Congratulations! :tada:
  7. Now what?

This is a new React Native project, bootstrapped using @react-native-community/cli.

Getting Started

Note: Make sure you have completed the Set Up Your Environment guide before proceeding.

Step 1: Start Metro

First, you will need to run Metro, the JavaScript build tool for React Native.

To start the Metro dev server, run the following command from the root of your React Native project:

# Using npm
npm start

# OR using Yarn
yarn start

Step 2: Build and run your app

With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:

Android

# Using npm
npm run android

# OR using Yarn
yarn android

iOS

For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).

The first time you create a new project, run the Ruby bundler to install CocoaPods itself:

bundle install

Then, and every time you update your native dependencies, run:

bundle exec pod install

For more information, please visit CocoaPods Getting Started guide.

# Using npm
npm run ios

# OR using Yarn
yarn ios

If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.

This is one way to run your app — you can also build it directly from Android Studio or Xcode.

Step 3: Modify your app

Now that you have successfully run the app, let's make changes!

Open App.tsx in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by Fast Refresh.

When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:

  • Android: Press the R key twice or select "Reload" from the Dev Menu, accessed via Ctrl + M (Windows/Linux) or Cmd ⌘ + M (macOS).
  • iOS: Press R in iOS Simulator.

Congratulations! :tada:

You've successfully run and modified your React Native App. :partying_face:

Now what?

  • If you want to add this new React Native code to an existing application, check out the Integration guide.
  • If you're curious to learn more about React Native, check out the docs.

Troubleshooting

If you're having issues getting the above steps to work, see the Troubleshooting page.

Learn More

To learn more about React Native, take a look at the following resources:

版本与发布记录

@cometchat/calls-sdk-react-native 共发布 51 个版本,首次发布于 2023/08/07;过去 12 个月发布了 29 个版本。

版本发布日期距今
5.1.0latest2026/11/028 天前
5.0.7-beta.1beta2026/09/291 个月前
5.0.62026/09/141 个月前
5.0.52026/08/312 个月前
5.0.42026/08/152 个月前
5.0.32026/07/203 个月前

其他发布通道:next → 4.4.1,beta → 5.0.7-beta.1。

关于 @cometchat/calls-sdk-react-native 的常见问题

@cometchat/calls-sdk-react-native 是什么?

CometChat Calls SDK for React Native provides voice and video calling capabilities for React Native applications.

如何安装 @cometchat/calls-sdk-react-native?

在项目目录运行 npm install @cometchat/calls-sdk-react-native,或使用 pnpm add / yarn add / bun add。

@cometchat/calls-sdk-react-native 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cometchat/calls-sdk-react-native 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@cometchat/calls-sdk-react-native 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cometchat/calls-sdk-react-native 可以商用吗?

@cometchat/calls-sdk-react-native 使用 https://www.cometchat.com/legal-terms-of-service 许可。声明的许可为 https://www.cometchat.com/legal-terms-of-service,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@cometchat/calls-sdk-react-native 的下载量有多少?

根据 npm 官方下载统计,@cometchat/calls-sdk-react-native 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,506 次,日均约 84 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cometchat/calls-sdk-react-native 还在维护吗?

最新版本 5.1.0 发布于 2026/11/02(8 天前);至今共发布 51 个版本,其中过去 12 个月发布了 29 个;首次发布于 2023/08/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。