Implement SDK with React | Community
Skip to main content
andersonjh
Level 2
September 10, 2019
Solved

Implement SDK with React

  • September 10, 2019
  • 2 replies
  • 5059 views

We are building a mobile app with React. I only see SDKs for iOS and Android. Is there a way to tie React for analytics to both platform from one central code? I found

this in the documentation.

import { ACPAnalytics } from "@adobe/react-native-acpanalytics";

initSDK() {

  ACPAnalytics.registerExtension();

}

If we add this to the SDK, if that enough push the analytics from just one central React code to push iOS and Android?

Best answer by nporter

Hi andersonjh,

We have created React Native support for many of our extensions, these projects are available in open source repos and can be installed via npm. This way you can write both Javascript and native code to implement the SDK.

You should be able to find all the documentation you need in the projects README's. Let me know if you have any questions.

GitHub - adobe/react-native-acpcore: A wrapper around the iOS and Android AEP Core SDK to allow for integration with Rea…

GitHub - adobe/react-native-acpanalytics: A wrapper around the iOS and Android AEP Analytics SDK to allow for integratio…

2 replies

nporterAccepted solution
Level 2
September 10, 2019

Hi andersonjh,

We have created React Native support for many of our extensions, these projects are available in open source repos and can be installed via npm. This way you can write both Javascript and native code to implement the SDK.

You should be able to find all the documentation you need in the projects README's. Let me know if you have any questions.

GitHub - adobe/react-native-acpcore: A wrapper around the iOS and Android AEP Core SDK to allow for integration with Rea…

GitHub - adobe/react-native-acpanalytics: A wrapper around the iOS and Android AEP Analytics SDK to allow for integratio…

andersonjh
Level 2
September 11, 2019

Thanks. The links are exactly what I needed.