Setting up the SDK
Add the SDK to your app
Download the 2.1.1 version of the adjoe SDK for React Native here: react-native-adjoe-sdk-2.1.1-standard.tgz.
After you have downloaded it, add the adjoe SDK to your app by running the command $ npm install --save path/to/react-native-adjoe-sdk-2.1.1-standard.tgz
in your app's root directory. This will extract the files from the tarball, add them to the node_modules
folder and add an entry to your package.json
.
In your project's android
directory, add Adjoe's repository to your root build.gradle
(project level):
Linking
You need to link the native components of the adjoe SDK with the native parts of your app. To do so, run the command $ react-native link react-native-adjoe-sdk
in your app's root directory.
Importing the functions
You can import the SDK's functions by adding
to the import section of the files where you need to access adjoe's functionality.
Last updated