Skip to content

advorkina/react-native-appmetrica

Repository files navigation

@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