This commit is contained in:
Трефилов Андрей 2018-07-13 14:40:46 +05:00
parent f35de9a958
commit f0261936c4

View File

@ -9,7 +9,8 @@ RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(activateWithApiKey:(NSString *)apiKey)
{
[YMMYandexMetrica activateWithApiKey:apiKey];
YMMYandexMetricaConfiguration *configuration = [[YMMYandexMetricaConfiguration alloc] initWithApiKey:apiKey];
[YMMYandexMetrica activateWithConfiguration:configuration];
}
RCT_EXPORT_METHOD(reportEvent:(NSString *)message)