From f0261936c4e7bcfe669da0d35237b305f7b31b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D1=80=D0=B5=D1=84=D0=B8=D0=BB=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Date: Fri, 13 Jul 2018 14:40:46 +0500 Subject: [PATCH] fix --- ios/RCTAppMetrica/RCTAppMetrica/RCTAppMetrica.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RCTAppMetrica/RCTAppMetrica/RCTAppMetrica.m b/ios/RCTAppMetrica/RCTAppMetrica/RCTAppMetrica.m index 05446df..139810a 100644 --- a/ios/RCTAppMetrica/RCTAppMetrica/RCTAppMetrica.m +++ b/ios/RCTAppMetrica/RCTAppMetrica/RCTAppMetrica.m @@ -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)