1.0.2 • Published 5 years ago
react-native-startapp-ads v1.0.2
react-native-startapp-ads
Getting started
$ npm install react-native-startapp-ads --save
Mostly automatic installation
$ react-native link react-native-startapp-ads
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.startappAds.RNStartappAdsPackage;
to the imports at the top of the file - Add
new RNStartappAdsPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-startapp-ads' project(':react-native-startapp-ads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-startapp-ads/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-startapp-ads')
Usage
import RNStartappAds from 'react-native-startapp-ads';
// TODO: What to do with the module?
RNStartappAds;