# react-native-acpgriffon **Repository Path**: mirrors_adobe/react-native-acpgriffon ## Basic Information - **Project Name**: react-native-acpgriffon - **Description**: Adobe Experience Platform - Project Griffon plugin for React-Native apps - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React Native AEP Assurance Extension [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepassurance.svg)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepassurance)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) [![CircleCI](https://img.shields.io/circleci/project/github/adobe/react-native-aepassurance/main.svg?logo=circleci)](https://circleci.com/gh/adobe/workflows/react-native-aepassurance) [![license](https://img.shields.io/npm/l/@adobe/react-native-aepassurance.svg)](https://github.com/adobe/react-native-aepassurance/blob/main/LICENSE) `@adobe/react-native-aepassurance` is a wrapper around the iOS and Android [AEPAssurance SDK](https://developer.adobe.com/client-sdks/previous-versions/documentation/platform-assurance-sdk/) to allow for integration with React Native applications. Functionality to start Assurance session is provided through JavaScript documented below. ## Installation You need to install the SDK with [npm](https://www.npmjs.com/) and configure the native Android/iOS project in your react native project. Before installing the Assurance extension it is recommended to begin by installing the [Core extension](https://github.com/adobe/react-native-acpcore). > Note: If you are new to React Native we suggest you follow the [React Native Getting Started]() page before continuing. ### 1. Create React Native project First create a React Native project: ```bash react-native init MyReactApp ``` ### 2. Install JavaScript packages Install and link the `@adobe/react-native-aepassurance` package: ```bash cd MyReactApp npm install @adobe/react-native-aepassurance@2.0.1 ``` #### 2.1 Link - **React Native 0.60+** [CLI autolink feature](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) links the module while building the app. - **React Native <= 0.59** ```bash react-native link @adobe/react-native-aepassurance ``` *Note* For `iOS` using `cocoapods`, run: ```bash cd ios/ && pod install ``` ## Tests This project contains jest unit tests which are contained in the `__tests__` directory, to run the tests locally: ``` make run-tests-locally ``` ## Usage ### Assurance ##### Importing the extension: ```javascript import {AEPAssurance} from '@adobe/react-native-aepassurance'; ``` ##### Getting the extension version: ```javascript AEPAssurance.extensionVersion().then(version => console.log("AdobeExperienceSDK: AEPAssurance version: " + version)); ``` ##### Registering the extension with ACPCore: It is recommended to initialize the SDK via native code inside your AppDelegate and MainApplication in iOS and Android respectively. ###### **iOS** ```objective-c #import [AEPAssurance registerExtension]; ``` ###### **Android:** ```java import com.adobe.marketing.mobile.Assurance; Assurance.registerExtension(); ``` ##### Start Assurance session: ```javascript import {AEPAssurance} from '@adobe/react-native-aepassurance'; AEPAssurance.startSession("{your-assurance-session-url}"); ``` ## Additional React Native Plugins Below is a list of additional React Native plugins from the AEP SDK suite: | Extension | npm package | | ------------ | ------------------------------------------------------------ | | Core | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpcore.svg?color=green&label=%40adobe%2Freact-native-acpcore&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpcore) | | Analytics | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpanalytics.svg?color=green&label=%40adobe%2Freact-native-acpanalytics&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpanalytics) | | Audience | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpaudience.svg?color=green&label=%40adobe%2Freact-native-acpaudience&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpaudience) | | Campaign | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpcampaign.svg?color=green&label=%40adobe%2Freact-native-acpcampaign&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpcampaign) | | Media | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpmedia.svg?color=green&label=%40adobe%2Freact-native-acpmedia&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpmedia) | | Target | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acptarget.svg?color=green&label=%40adobe%2Freact-native-acptarget&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acptarget) | | User Profile | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpuserprofile.svg?color=green&label=%40adobe%2Freact-native-acpuserprofile&logo=npm&style=flat-square)](https://badge.fury.io/js/%40adobe%2Freact-native-acpuserprofile) | | Places | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-acpplaces.svg?color=green&label=%40adobe%2Freact-native-acpplaces&logo=npm&style=flat-square)](https://www.npmjs.com/package/@adobe/react-native-acpplaces) | ## Contributing Looking to contribute to this project? Please review our [Contributing guidelines](.github/CONTRIBUTING.md) prior to opening a pull request. We look forward to working with you! ## Licensing This project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.