yandexmobile / react-native-appmetrica

React Native bridge to the AppMetrica on both iOS and Android.
MIT License
52 stars 131 forks source link

AppMetrika for React native #42

Open kate010 opened 4 years ago

kate010 commented 4 years ago

I gets error when load app with react-native-appmetrica module: Could not find a declaration file for module 'react-native-appmetrica'. '.../node_modules/react-native-appmetrica/index.js' implicitly has an 'any' type. Try npm install @types/react-native-appmetrica if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-appmetrica';ts(7016) also when i opens file node_modules\react-native-appmetrica\index.js I get a lot of warnings "Type aliases can only be used in TypeScript files.ts(8008)". How to fix that issue? It looks like index.js infacts is index.ts

natasha08n commented 4 years ago

We use this package https://github.com/ARDcode/react-native-appmetrica-yandex, it works

ekatherina commented 4 years ago

Is it for managed workflow?

natasha08n commented 4 years ago

Sorry, didn’t get the question. What did you mean by “managed workflow”?

ekatherina commented 4 years ago

I mean ExpoJs has 2 different workflows to wark with react-native: bare and managed. It looks like this module is only for bare worflow.