@adobe/react-native-aepassurance

中文文档
7.0.0发布于 2025/03/29TypeScriptCommonJS零依赖近 30 天下载 6.9万

Adobe Experience Platform support for React Native apps.

原始使用文档
文档目录6 节
  1. Prerequisites
  2. Installation
  3. Usage
  4. Initializing with SDK:
  5. Importing the extension:
  6. Start Assurance session:

React Native Adobe Experience Platform Assurance Extension

npm version npm downloads

@adobe/react-native-aepassurance is a wrapper around the iOS and Android Adobe Experience Platform Assurance to allow for integration with React Native applications. Functionality to start Assurance session is provided through JavaScript documented below.

Prerequisites

The Adobe Experience Platform Assurance extension has the following peer dependency, which must be installed prior to installing the identity extension:

Installation

See Requirements and Installation instructions on the main page

Install the @adobe/react-native-aepassurance package:

NPM:

npm install @adobe/react-native-aepassurance

Yarn:

yarn add @adobe/react-native-aepassurance

Usage

Initializing with SDK:

To initialize the SDK, use the following methods:

Refer to the root Readme for more information about the SDK setup.

To connect to an Assurance session by scanning the QR code, follow the Android documentation for more information about how to setup a deeplink.

Importing the extension:

import { Assurance } from "@adobe/react-native-aepassurance";

Start Assurance session:

Assurance.startSession("{your-assurance-session-url}");

版本与发布记录

@adobe/react-native-aepassurance 共发布 16 个版本,首次发布于 2020/11/19;过去 12 个月发布了 0 个版本。

版本发布日期距今
7.0.0latest2025/03/291.6 年前
6.0.22024/06/072 年前
6.0.12024/04/242 年前
6.0.02024/04/132 年前
5.0.02023/06/213 年前
4.0.02023/03/103 年前

其他发布通道:alpha → 3.0.0-alpha.2。

关于 @adobe/react-native-aepassurance 的常见问题

@adobe/react-native-aepassurance 是什么?

Adobe Experience Platform support for React Native apps.

如何安装 @adobe/react-native-aepassurance?

在项目目录运行 npm install @adobe/react-native-aepassurance,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react-native(>=0.60.0)、@adobe/react-native-aepcore(^7.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@adobe/react-native-aepassurance 支持 TypeScript 吗?

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

@adobe/react-native-aepassurance 支持 ESM 还是 CommonJS?

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

@adobe/react-native-aepassurance 可以商用吗?

@adobe/react-native-aepassurance 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@adobe/react-native-aepassurance 的下载量有多少?

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

@adobe/react-native-aepassurance 还在维护吗?

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