@adobe/react-native-acpcampaign
Advanced tools
Weekly downloads
Changelog
v2.0.1
Readme
@adobe/react-native-acpcampaign
is a wrapper around the iOS and Android AEP Campaign SDK to allow for integration with React Native applications. Functionality to enable Adobe Campaign Standard is provided entirely through JavaScript documented below.
You need to install the SDK with npm and configure the native Android/iOS project in your react native project. Before installing the Campaign 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.
First create a React Native project:
react-native init MyReactApp
Install and link the @adobe/react-native-acpcampaign
package:
cd MyReactApp
npm install @adobe/react-native-acpcampaign
This package requires React Native 0.60+ to build which supports CLI autolink feature to link the modules while building the app.
Note For iOS
using cocoapods
, run:
cd ios/ && pod install
Note For iOS
using cocoapods
, run:
cd ios/ && pod install
This project contains jest unit tests which are contained in the __tests__
directory, to run the tests locally:
make run-tests-locally
import {ACPCampaign} from '@adobe/react-native-acpcampaign';
ACPCampaign.extensionVersion().then(version => console.log("AdobeExperienceSDK: ACPCampaign version: " + version));
Note: It is recommended to initialize the SDK via native code inside your AppDelegate and MainApplication in iOS and Android respectively.
#import <RCTACPCampaign/ACPCampaign.h>
[ACPCampaign registerExtension];
import com.adobe.marketing.mobile.Campaign;
Campaign.registerExtension();
ACPCampaign.setLinkageFields({"linkageKey": "linkageValue"});
ACPCampaign.resetLinkageFields();
See CONTRIBUTING
See LICENSE
FAQs
Adobe Experience Platform support for React Native apps.
The npm package @adobe/react-native-acpcampaign receives a total of 625 weekly downloads. As such, @adobe/react-native-acpcampaign popularity was classified as not popular.
We found that @adobe/react-native-acpcampaign demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.