3.3.0 • Published 10 months ago

@appmetrica/react-native-analytics v3.3.0

Weekly downloads
-
License
See LICENSE.md fi...
Repository
github
Last release
10 months ago

@appmetrica/react-native-analytics

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

Installation

npm install @appmetrica/react-native-analytics

Usage

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

// Starts the statistics collection process.
AppMetrica.activateWithConfig({
  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');
3.3.0

10 months ago

3.2.0

10 months ago

3.1.0

1 year ago

3.0.0

1 year ago