Ap React Kit is a React Native Module for ApAppKit. It currently supports Android Platform. It allows you to integrate AdPushup's AdX Ads into your apps.
npm install ap-react-kit
In your project-level build.gradle file (Located at : '/android/build.gradle'), include jitpack Maven Repository in allprojects section:
allprojects {
repositories {
maven { url 'https://www.jitpack.io' }
// ...
}
// ...
}
import { pingAdLoaded, pingAdOpened, pingAdClosed, pingAdImpression } from "ap-react-kit";
// ...
onAdLoaded={ () => {
pingAdLoaded(adUnitId);
console.log('Ad Loaded');
}}
onAdOpened={ () => {
pingAdOpened(adUnitId);
console.log('Ad Opened');
}}
onAdClosed={ () => {
pingAdClosed(adUnitId);
console.log('Ad Closed');
}}
onAdImpression={ () => {
pingAdClosed(adUnitId);
console.log('Ad Impression Recorded');
}}
// ...
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT