1.0.12 • Published 5 months ago

ayetsdk v1.0.12

Weekly downloads
8
License
MIT
Repository
github
Last release
5 months ago

ayeT-Studios React Native Publisher SDK

This package allows integration a web offerwall in a react native application effortlessly. You can check out our example app here.

Preparations

Before going forward with the implementation, you should create a web placement and a web offerwall adslot in your publisher account at ayetstudios.com.

Project Setup

First, add & install the ayetsdk package to your react native project:

$ npm i ayetsdk
$ npm i --save react-native-webview

For additional platform specific setup steps that might be required, please refer to react-native webview.

How to integrate the ayeT-Studios Offerwall in your app

import { AyetOfferwall } from "ayetsdk";

When rendering the AyetOfferwall component, a userId and an adslotId has to be passed. The userId should be a unique, persistent identifier (alphanumeric) for the user. An example might be a unique user id or the hashed email address of the user. adslotId is the id of the web_offerwall adslot created in your publisher dashboard at ayetstudios.com.

<AyetOfferwall
  userId="myuser-23374"
  adslotId="123"
  onClose={onClose}
/>

The onClose callback function should be implemented according to your requirements. A common practice is to navigate back in your router when the onClose callback is triggered.

const onClose = () => {
  // code you want to execute on offerwall close button pressed
};
1.0.11

5 months ago

1.0.12

5 months ago

1.0.10

9 months ago

1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago