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.

Set user properties

You can set properties to describe the users of your app. Check the preset defined for the keys we support. Read more about the AdropMetrics.

let key = "YOUR_PROPERTY_KEY"
let value = "YOUR_PROPERTY_VALUE"
AdropMetrics.setProperty(key, value)

Last updated