@ijl/react-native-appmetrica

2.0.2 • Public • Published

react-native-appmetrica

React Native bridge to the AppMetrica on both iOS and Android.

Installation

  1. npm install @jil/react-native-appmetrica --save

Usage

import AppMetrica from '@ijl/react-native-appmetrica';

// Starts the statistics collection process.
AppMetrica.activate({
  apiKey: '...KEY...',
  sessionTimeout: 120,
  firstActivationAsUpdate: false,
});

// Sends a custom event message and additional parameters (optional).
AppMetrica.reportEvent('My event');
AppMetrica.reportEvent('My event', { foo: 'bar' });

// Send a custom error event.
AppMetrica.reportError('My error');

Readme

Keywords

none

Package Sidebar

Install

npm i @ijl/react-native-appmetrica

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

558 kB

Total Files

78

Last publish

Collaborators

  • primakovpro
  • ijl.jenkins
  • innoavvlasov