react-native-appmetrica
React Native bridge to the AppMetrica on both iOS and Android.
Installation
npm install @jil/react-native-appmetrica --save
Usage
import AppMetrica from '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');
Description
Languages
Java
35.1%
Objective-C
34.1%
JavaScript
19.6%
Ruby
9.6%
Starlark
1.6%