0.3.0 • Published 2 years ago

ap-react-kit v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ap-react-kit

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.

Installation

npm install ap-react-kit

Configure your app

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' }
        // ...
    }
    // ...
}

Usage

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');
}}
// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.3.0

2 years ago

0.2.5

2 years ago