Merge pull request #13 from TrefilovAnd/framework-v3

Migration to iOS SDK 3.x.x
This commit is contained in:
Aleksei Androsov 2018-07-25 16:03:04 +03:00 committed by GitHub
commit 60a3522f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)