react-native-unity-ads-module
enables you to show Unity ADS in your React Native based app using Unity Ads SDK 2.0 (Android, iOS).
react-native-unity-ads-module
is Forked from react-native-unity-ads
created by Gökhan Sarı.
## Installation
For quick installation, you can install the npm package and then let react-native do the hard work.
$ npm install --save react-native-unity-ads-module
$ react-native link
include ':app', ':react-native-unity-ads-module'
project(':react-native-unity-ads-module').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-unity-ads-module/android')
dependencies {
compile project(':react-native-unity-ads-module')
...
}
// Add after other com.facebook imports
import com.unityads.RNUnityAdsPackage;
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
// The part that comes from your other native modules goes here.
new RNUnityAdsModulePackage()
);
}
...
Hopefully, a nice API documentation will be available soon, but until then, you can see the example application RNUnityAdsExample.
This library is made available under Apache License 2.0.