{"_id":"@appomart/react-native-appmetrica","name":"@appomart/react-native-appmetrica","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@appomart/react-native-appmetrica","title":"Yandex AppMetrica React Native Plugin","version":"1.0.0","description":"React Native plugin for AppMetrica analytics tool","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/appomart/react-native-appmetrica.git"},"keywords":["yandex","appmetrica","metrica","analytics","tracking","react-native","ecosystem:react-native","react-native-ios","react-native-android"],"author":{"name":"YANDEX LLC"},"license":"MIT","homepage":"https://appmetrica.yandex.com/docs","peerDependencies":{"react-native":">=0.59.0 <1.0.x"},"devDependencies":{},"types":"./index.d.ts","contributors":[{"name":"The following authors have created the source code of \"react-native-appmetrica\" published and distributed by YANDEX LLC as the owner:"},{"name":"Aliaksei Nestsiarovich","email":"alex98@yandex-team.ru"}],"gitHead":"28381c653e842fa4f3f2817f8ca02edeb0af0813","bugs":{"url":"https://github.com/appomart/react-native-appmetrica/issues"},"_id":"@appomart/react-native-appmetrica@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Y7YyddOfjbBaWn9AKgix3MhPq57vgvz3LC8BbqecQUy+tnl3NHDkIODf5mM9DAdgbLPYUHI4dLlrTXKhhm9Myg==","shasum":"c233d9a246fb9cd340166e6eaeef82a726909bcb","tarball":"https://registry.npmjs.org/@appomart/react-native-appmetrica/-/react-native-appmetrica-1.0.0.tgz","fileCount":21,"unpackedSize":43110,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARjVONgjnDkLtytnpGDpMSfzV+/4d80cfxOvAHZGKDSAiArHHbcY8sXsdS3qxpbSCO8lYet7zU3FPP1v7gUZvdnUQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmEb9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrehg/+M3P8HGZ4Ay+RsW2aCQwRVTcZLZfGYaLiWVhHW3BvYaAh+ZhC\r\nlCMc0q68ohwKyCIWJWFGtxcqLOwtdpLgTWGnhtgU0hCnWJaVH8A12hS0luiD\r\n4THoi4EXYitTKBdwcqaB+KnWi7HIKihNr20pPGx1s/NJkQYTLWuPhEx6tV/N\r\nVCy3SWMgvy1jR38HIEfb6YAw2VtGqBC7KcNs3YIX0KYN0Dm3sC0iHyEvFNNp\r\nJhWUCss4bmaCjqUwPOzOIpJQcEaX/qN0fidUXP6uKt9jC/fJiJYVcyiVmCm8\r\nB0jPPmdDNlXAtbpPOXKum4J1o0bD7mYPYeV7kOePk1XtVd0BproYTBh7k9ww\r\nd6xSHMG/2ZD95MFcG8r2WSkAICuHahGVYEfc1CLqLUwqLY+bRFlDFhW6SdOC\r\nQBVA5eDOEWnDq10mMvcoXZ6v7uRVeKyytKW5FZxAQEIiYXuCPnTZ1Y+0mIy4\r\nVr9jWV72uEh8rQkhSsmdxUnJAijPI4ZjZRvAMM7SiZHrismU/aN2gZHtVylh\r\n2Zyk1GoVZpY5nHoQvqZ1buKuUp8KicaCiac2cIaAKKPtbNqLO9wpgYxJLf6Z\r\ntrKvnpxW5qESflszY4Ukl4ngswPKiZloBoRhZy+SMg4Ly40Ol/9FocrpGugo\r\nLwm4ghK5uA4bHpzWHOIRtKBRM4dIY6UP0iU=\r\n=ZcdV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"whidrubeld","email":"whidrubeld@gmail.com"},"directories":{},"maintainers":[{"name":"whidrubeld","email":"whidrubeld@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-appmetrica_1.0.0_1670924029550_0.2656357792925277"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-13T09:33:49.483Z","1.0.0":"2022-12-13T09:33:49.716Z","modified":"2022-12-13T09:33:49.885Z"},"maintainers":[{"name":"whidrubeld","email":"whidrubeld@gmail.com"}],"description":"React Native plugin for AppMetrica analytics tool","homepage":"https://appmetrica.yandex.com/docs","keywords":["yandex","appmetrica","metrica","analytics","tracking","react-native","ecosystem:react-native","react-native-ios","react-native-android"],"repository":{"type":"git","url":"git+https://github.com/appomart/react-native-appmetrica.git"},"contributors":[{"name":"The following authors have created the source code of \"react-native-appmetrica\" published and distributed by YANDEX LLC as the owner:"},{"name":"Aliaksei Nestsiarovich","email":"alex98@yandex-team.ru"}],"author":{"name":"YANDEX LLC"},"bugs":{"url":"https://github.com/appomart/react-native-appmetrica/issues"},"license":"MIT","readme":"# @appomart/react-native-appmetrica\nReact Native bridge to the [AppMetrica](https://appmetrica.yandex.com/) on both iOS and Android.\n\n## About package\nThis is a temporary solution. This repository includes pull requests from the [main repository](https://github.com/yandexmobile/react-native-appmetrica) and will be supported until all critical updates are included. Added updates:\n1. [Typescript support](https://github.com/yandexmobile/react-native-appmetrica/pull/46)\n2. [Fix android build](https://github.com/yandexmobile/react-native-appmetrica/pull/62)\n3. [EAS build support](https://github.com/yandexmobile/react-native-appmetrica/pull/65)\n\n## Installation\n\n ```shell\n  yarn add @appomart/react-native-appmetrica\n ```\n## Integration into a pure React Native project\n\n1. `npm install @appomart/react-native-appmetrica --save`\n2. If React Native version <= 0.59: \\\n  `react-native link @appomart/react-native-appmetrica`\n3. iOS only\n  * if `${PROJECT_DIR}/ios/Podfile` exists: \\\n  `npx pod-install`\n  * if `${PROJECT_DIR}/ios/Podfile` don't exists: \\\n  [Setup AppMetrica](https://appmetrica.yandex.com/docs/mobile-sdk-dg/tasks/ios-quickstart.html) and placed frameworks at `${PROJECT_DIR}/ios/Frameworks`\n\n## Integrate into an Expo managed project\n\n 1. Install `expo-dev-client`:\n\n ```shell\n npx expo install expo-dev-client\n ```\n\n 2. Add `@appomart/react-native-appmetrica` into the `plugins` array inside the `app.json` file of your app:\n\n ```shell\n \"plugins\": [\n   [\"@appomart/react-native-appmetrica\", {}],\n ],\n ```\n\n## Usage\n\n```js\nimport AppMetrica from '@appomart/react-native-appmetrica';\n\n// Starts the statistics collection process.\nAppMetrica.activate({\n  apiKey: '...KEY...',\n  sessionTimeout: 120,\n  firstActivationAsUpdate: false,\n});\n\n// Sends a custom event message and additional parameters (optional).\nAppMetrica.reportEvent('My event');\nAppMetrica.reportEvent('My event', { foo: 'bar' });\n\n// Send a custom error event.\nAppMetrica.reportError('My error');\n```\n","readmeFilename":"README.md"}