名称 最后更新
android 正在载入提交数据...
ios 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
README.md 正在载入提交数据...
index.js 正在载入提交数据...
package.json 正在载入提交数据...

react-native-vode-ad

Getting started

$ npm install react-native-vode-ad --save

Mostly automatic installation

$ react-native link react-native-vode-ad

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-vode-ad and add RNVodeAd.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNVodeAd.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/[...]/MainActivity.java
    • Add import vodeAd.RNVodeAdPackage; to the imports at the top of the file
    • Add new RNVodeAdPackage() to the list returned by the getPackages() method
  2. Append the following lines to android/settings.gradle: include ':react-native-vode-ad' project(':react-native-vode-ad').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vode-ad/android')
  3. Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-vode-ad')

Usage

import RNVodeAd from 'react-native-vode-ad';

// TODO: What to do with the module?
RNVodeAd;