@adobe/react-native-aepedgebridge

中文文档
7.0.1发布于 2025/05/07Apache-2.0TypeScriptCommonJS零依赖近 30 天下载 4.2万

Adobe Experience Platform Edge Bridge extension for AEP Mobile SDK. Written and maintained by Adobe.

原始使用文档
文档目录9 节
  1. Prerequisites
  2. Installation
  3. Usage
  4. Initializing with SDK:
  5. Importing the extension
  6. Edge Bridge tutorials
  7. Validation
  8. API reference
  9. extensionVersion

React Native Adobe Experience Platform Edge Bridge extension

npm version npm downloads

@adobe/react-native-aepedgebridge is a wrapper around the iOS and Android Adobe Experience Platform Edge Bridge to allow for integration with React Native applications.

The Edge Bridge mobile extension provides seamless routing of data to the Adobe Experience Platform Edge Network for existing SDK implementations. For applications which already make use of the MobileCore.trackAction and/or MobileCore.trackState APIs to send data to Adobe Analytics, this extension will automatically route those API calls to the Edge Network, making the data available for mapping to a user's XDM schema using the Data Prep for Data Collection.

[!IMPORTANT] Edge Bridge serves primarily as a migration aid for applications that are already using Adobe Analytics within their implementation.

For new applications being developed with the Adobe Experience Platform Mobile SDKs, it is strongly recommended to use the Edge.sendEvent API of the Edge Network extension.

Prerequisites

The Edge Bridge extension has the following peer dependencies, which must be installed prior to installing the Edge Bridge extension:

Installation

See Requirements and Installation instructions on the main page

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

NPM:

npm install @adobe/react-native-aepedgebridge

Yarn:

yarn add @adobe/react-native-aepedgebridge

Usage

Initializing with SDK:

To initialize the SDK, use the following methods:

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

Importing the extension

In your React Native application, import the Edge Bridge extension as follows:

import {EdgeBridge} from '@adobe/react-native-aepedgebridge';

Edge Bridge tutorials

For tutorials on implementing Edge Bridge and Data Prep mapping, refer to the Edge Bridge tutorials.

Validation

Validating Edge Bridge events through Edge workflow using the Event Transations view or Analytics Events 2.0 view in Assurance.

API reference

extensionVersion

Returns the version of the client-side Edge Bridge extension.

Syntax

extensionVersion(): Promise<string>

Example

EdgeBridge.extensionVersion().then(version => console.log("AdobeExperienceSDK: Edge Bridge version: " + version));

版本与发布记录

@adobe/react-native-aepedgebridge 共发布 7 个版本,首次发布于 2023/04/06;过去 12 个月发布了 0 个版本。

版本发布日期距今
7.0.1latest2025/05/071.5 年前
7.0.02025/03/291.6 年前
6.0.22024/06/072 年前
6.0.12024/04/242 年前
6.0.02024/04/132 年前
5.0.02023/06/213 年前

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

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

Adobe Experience Platform Edge Bridge extension for AEP Mobile SDK. Written and maintained by Adobe.

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

在项目目录运行 npm install @adobe/react-native-aepedgebridge,或使用 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-aepedgebridge 支持 TypeScript 吗?

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

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

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

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

@adobe/react-native-aepedgebridge 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

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

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

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

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