rn-yandex-metrica

0.0.7 • Public • Published

YandexMobileMetricaBridge

Yandex Mobile Metrica Bridge provides an interface to the native Yandex Mobile Metrica libraries on both iOS and Android.

Installation and linking libraries

  • Install with npm: npm install --save rn-yandex-metrica Or, install with yarn: yarn add rn-yandex-metrica

  • Link with: react-native link rn-yandex-metrica

Usage

import {
  YandexMetrica,
} from 'rn-yandex-metrica';
 
// The yandex metrica must be activated
YandexMetrica.activateWithApiKey('app key');
 
// Event reporting
YandexMetrica.reportEvent('Hello from react-native');
 
// Disables reporting (must be called before activation)
YandexMetrica.setDryRun(true);

Package Sidebar

Install

npm i rn-yandex-metrica

Weekly Downloads

4

Version

0.0.7

License

MIT

Unpacked Size

42.1 MB

Total Files

30

Last publish

Collaborators

  • voroncv