Skip to content

A wrapper around the iOS and Android AEP Mobile Services Extension SDK to allow for integration with React Native applications

Notifications You must be signed in to change notification settings

ConstantineDB/react-native-acpmobileservices

 
 

Repository files navigation

react-native-acpmobileservices

Getting started

$ npm install react-native-acpmobileservices --save

Mostly automatic installation

$ react-native link react-native-acpmobileservices

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-acpmobileservices and add RCTACPMobileServices.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRCTACPMobileServices.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.foursum.reactnative.RCTACPMobileServicesPackage; to the imports at the top of the file
  • Add new RCTACPMobileServicesPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-acpmobileservices'
    project(':react-native-acpmobileservices').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-acpmobileservices/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':react-native-acpmobileservices')
    

Usage

import ACPMobileServices from 'react-native-acpmobileservices';

ACPMobileServices.registerExtension();
ACPMobileServices.extensionVersion();
ACPMobileServices.trackDeepLink(URL_FROM_DEEPLINK);

About

A wrapper around the iOS and Android AEP Mobile Services Extension SDK to allow for integration with React Native applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 38.8%
  • Objective-C 30.4%
  • JavaScript 16.8%
  • Ruby 14.0%