React Native

Initialize Adrop

  1. Import the Adrop

  2. Initialize the Adrop early in the project’s run-time lifecycle, preferably at launch.

import { Adrop } from 'adrop-ads-react-native';

// ..
// set true for production
let production = false;
Adrop.initialize(production);

When production is false, you can check error logs.

Log Events

You can log custom event to define the users of your app. Read more about the AdropMetrics.

AdropMetrics.logEvent("event_name", {
    "data_key_1": 1,
    "data_key_2": 1.2,
    "data_key_3": true,
    "data_key_4": "value_text"
})

Last updated