yandexmobile / react-native-appmetrica

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

TypeError: _reactNativeAppmetrica.default.activateWithConfig is not a function. #48

Closed Preeternal closed 3 years ago

Preeternal commented 3 years ago

I got an error

TypeError: _reactNativeAppmetrica.default.activateWithConfig is not a function. (In '_reactNativeAppmetrica.default.activateWithConfig({
    apiKey: 'myIpKey',
    sessionTimeout: 120,
    firstActivationAsUpdate: true
  })', '_reactNativeAppmetrica.default.activateWithConfig' is undefined)

Could you please to change readme? There is no default export in the code for activateWithConfig, but there is activate function:

изображение

So correct description in README.MD should be:

AppMetrica.activate({
  apiKey: '...KEY...',
  sessionTimeout: 120,
  firstActivationAsUpdate: true,
});
NesterovichAlexey commented 3 years ago

Thank you! The file is correct now.

plus24-library commented 3 years ago

TypeError: _reactNativeAppmetrica.default.activate is not a function. (In '_reactNativeAppmetrica.default.activate({ apiKey: '...KEY...', sessionTimeout: 120, firstActivationAsUpdate: true })', '_reactNativeAppmetrica.default.activate' is undefined)

ghost commented 3 years ago

Добрый день!Ваше письмо получено и зарегистрировано под уникальным номером № 12485195. Ответ обязательно будет предоставлен, пожалуйста, ожидайте.Просим Вас не отправлять повторное письмо по данному вопросу - оно будет считаться новой заявкой и может быть обработано позднее.Помощь сервиса: https://yandex.ru/support/direct/?from=email--С уважением,Отдел клиентского сервисател.: 8 800 234-24-80 (звонок из регионов России бесплатный)тел.: +7 495 739-37-77&nbsp01.04.2021, 09:48, "plus24-library" @.***>: TypeError: _reactNativeAppmetrica.default.activate is not a function. (In '_reactNativeAppmetrica.default.activate({ apiKey: '...KEY...', sessionTimeout: 120, firstActivationAsUpdate: true })', '_reactNativeAppmetrica.default.activate' is undefined)

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.