React Native AEP Audience Extension
You need to install the SDK with npm and configure the native Android/iOS project in your react native project. Before installing the Audience extension it is recommended to begin by installing the Core extension.
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:
react-native init MyReactApp
Install and link the
cd MyReactAppnpm install @adobe/react-native-acpaudience
- React Native 0.60+
CLI autolink feature links the module while building the app.
- React Native <= 0.59
$ react-native link react-native-acpaudience
$ cd ios/ && pod install
This project contains jest unit tests which are contained in the
__tests__ directory, to run the tests locally:
Importing the extension:
Getting the extension version:
Registering the extension with ACPCore:
Send signals to Audience Manager:
Reset identifiers and profiles:
Get the visitor profile: