@ada-support/react-native-sdk

中文文档
3.2.8发布于 2025/11/04ISCCommonJS近 30 天下载 1.1万

The Ada ReactNative is a small framework that is used to embed your Ada Chat bot into your ReactNative application.

原始使用文档
文档目录3 节
  1. Prerequisites
  2. Local Development
  3. Architecture

Ada React Native SDK

Go here for client-facing docs.

Prerequisites

You will need to have the below installed in order to run/compile the code

  • Java JDK - Follow Expo's Guide
  • ** Note: Watchman is used for hot-reloading changes. This appears to break this application. For the Java JDK step, ignore the watchman step **
  • Ruby 3.2.0
  • XCode - Latest (get this from the App Store)
    • If you installed xCode command line tools before xCode you may need to run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  • Android Studio - Latest
  • Node 20.x.x
  • Ensure you download an iOS and/or an Android simulator in xCode/Android Studio and have them running.

Add the following to your PATH in bash (.profile) or zsh (.zshrc)

export ANDROID_HOME="/Users/<your mac user folder here>/Library/Android/sdk"
PATH="$PATH:${ANDROID_HOME}/platform-tools/"

Local Development

  1. Open a terminal inside the sample folder
  2. Run npm run install-local-package. This will install all needed modules including our SDK from within your local machine (allowing local development)
  3. If you want to run Android type npm run android or if you want to run iOS type npm run ios

NOTE: If you are using a production AI Agent - ensure you add http://localhost:8081 to your approved domains for it to allow the page to render.

Architecture

See the Embed README for information about architecture.

Deploying to production

  1. Update the version number in the package.json file by incrementing the version value by 1 on the least significant value (eg. if version is 0.0.1, update it to 0.0.2)

  2. Get your PR reviewed and then squash and merge it to master. Merging your PR will automatically trigger the deploy to npm

版本与发布记录

@ada-support/react-native-sdk 共发布 31 个版本,首次发布于 2020/06/29;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.2.8latest2025/11/041 年前
3.2.72025/04/171.6 年前
3.2.62025/01/311.8 年前
3.2.52024/10/312 年前
3.2.42024/07/052 年前
3.2.32024/07/032 年前

关于 @ada-support/react-native-sdk 的常见问题

@ada-support/react-native-sdk 是什么?

The Ada ReactNative is a small framework that is used to embed your Ada Chat bot into your ReactNative application.

如何安装 @ada-support/react-native-sdk?

在项目目录运行 npm install @ada-support/react-native-sdk,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(*)、react-native(*)、rn-fetch-blob(^0.10.13)、react-native-webview(*)、@react-native-firebase/app(^21.14.0)、react-native-push-notification(^8.1.1)、@react-native-firebase/messaging(^21.14.0)、@types/react-native-push-notification(^8.1.1)、@react-native-community/push-notification-ios(^1.10.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ada-support/react-native-sdk 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ada-support__react-native-sdk 是否存在。

@ada-support/react-native-sdk 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@ada-support/react-native-sdk 可以商用吗?

@ada-support/react-native-sdk 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ada-support/react-native-sdk 的下载量有多少?

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

@ada-support/react-native-sdk 还在维护吗?

最新版本 3.2.8 发布于 2025/11/04(1 年前);至今共发布 31 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/06/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。