react-native-adscend-media
v1.0.4
Published
AdscendMedia support for **Android**
Downloads
2
Readme
react-native-adscend-media
AdscendMedia support for Android
Getting started
$ npm install react-native-adscend-media --save
Mostly automatic installation
$ react-native link react-native-adscend-media
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import me.jerson.mobile.ads.adscendmedia.RNAdscendMediaPackage;
to the imports at the top of the file - Add
new RNAdscendMediaPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-adscend-media' project(':react-native-adscend-media').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-adscend-media/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-adscend-media')
Usage
import AdscendMedia from 'react-native-adscend-media';
AdscendMedia.showIntentForMarketResearch(publisherId, profileId, subId);