@extence/react-native-appmetrica
TypeScript icon, indicating that this package has built-in type declarations

0.14.1 • Public • Published

@extence/react-native-appmetrica

React Native wrapper around AppMetrica

Installation

npm install @extence/react-native-appmetrica

!IMPORTANT Added android support!

Usage

import {initialize, reportEvent, reportPurchase} from '@extence/react-native-appmetrica';

// ...

const config = { // config is not required
  revenueAutoTrackingEnabled: true,
  appVersion: '1.0.0'
};
initialize(SDK_KEY, config);
reportEvent(event, params);
reportPurchase({price, currency, productId, quantity, orderId, source}, SDK_KEY);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @extence/react-native-appmetrica

Weekly Downloads

0

Version

0.14.1

License

MIT

Unpacked Size

323 kB

Total Files

41

Last publish

Collaborators

  • advorkina