UNPKG

@adobe/react-native-aepassurance

Version:

Adobe Experience Platform support for React Native apps.

55 lines (33 loc) 2.15 kB
# React Native Adobe Experience Platform Assurance Extension [![npm version](https://img.shields.io/npm/v/@adobe/react-native-aepassurance?color=green&label=npm%20package)](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) `@adobe/react-native-aepassurance` is a wrapper around the iOS and Android [Adobe Experience Platform Assurance](https://developer.adobe.com/client-sdks/documentation/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: - [Core](../core/README.md) ## Installation See [Requirements and Installation](https://github.com/adobe/aepsdk-react-native#requirements) instructions on the main page Install the `@adobe/react-native-aepassurance` package: NPM: ```bash npm install @adobe/react-native-aepassurance ``` Yarn: ```bash yarn add @adobe/react-native-aepassurance ``` ## Usage ### Initializing with SDK: To initialize the SDK, use the following methods: - [MobileCore.initializeWithAppId(appId)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#initializewithappid) - [MobileCore.initialize(initOptions)](https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#initialize) Refer to the root [Readme](https://github.com/adobe/aepsdk-react-native/blob/main/README.md) for more information about the SDK setup. To connect to an Assurance session by scanning the QR code, follow the [Android documentation](https://developer.android.com/training/app-links/deep-linking) for more information about how to setup a deeplink. ### Importing the extension: ```typescript import { Assurance } from "@adobe/react-native-aepassurance"; ``` ### Start Assurance session: ```typescript Assurance.startSession("{your-assurance-session-url}"); ```