react-native-adscend-media

1.0.4 • Public • Published

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

  1. 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 the getPackages() method
  1. 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')
    
  2. 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);

/react-native-adscend-media/

    Package Sidebar

    Install

    npm i react-native-adscend-media

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    13

    Last publish

    Collaborators

    • pardacho