Go to file
2023-08-08 16:29:05 +03:00
android gradle 7 compatibility fast way 2023-08-08 16:21:48 +03:00
example release 2.0.0 2020-06-08 22:14:06 +03:00
ios release 2.0.0 2020-06-08 22:14:06 +03:00
.gitignore release 2.0.0 2020-06-08 22:14:06 +03:00
.npmignore release 2.0.0 2020-06-08 22:14:06 +03:00
AUTHORS release 2.0.0 2020-06-08 22:14:06 +03:00
index.js release 2.0.0 2020-06-08 22:14:06 +03:00
LICENSE release 2.0.0 2020-06-08 22:14:06 +03:00
package.json 2.0.2 2023-08-08 16:29:05 +03:00
react-native-appmetrica.podspec release 2.0.0 2020-06-08 22:14:06 +03:00
README.md fix read me 2023-08-08 16:28:59 +03:00

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