React Native wrapper around AppMetrica
npm install @extence/react-native-appmetrica
!IMPORTANT Added android support!
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);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library