Skip to content

voroncv/rn-yandex-metrica

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Yandex metrica for react-native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 83.0%
  • Java 13.0%
  • JavaScript 3.0%
  • C 1.0%