React Native

Install and Integrate

  1. Install using npm install --save clevertap-react-native.
  2. Follow the installation instructions.
  3. Follow the integration instructions.

Example Usage

Grab a reference

Create a CleverTap reference to use Javascript methods

const CleverTap = require('clevertap-react-native');

Record an event

Method to push an event to CleverTap

CleverTap.recordEvent('testEvent');

Update a user profile

Method to push user profile to CleverTap

CleverTap.onUserLogin({'Name': 'testUserA1', 'Identity': '123456', 'Email': '[email protected]', 'custom1': 123});

Implementation setLocation

Method to pass user location information to CleverTap

CleverTap.setLocation(34.15, -118.20);

Create a Notification Channel

Method to create Notification Channels in Android

CleverTap.createNotificationChannel("yourChannelId","YourChannelName","YourChannelDescription",3,true);

Updated 6 months ago



React Native


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.