From 4eb88f3e202296e703534574f35b613c472ef5ff Mon Sep 17 00:00:00 2001 From: Andrey Bondarenko Date: Mon, 25 Jan 2021 19:02:37 +1000 Subject: [PATCH] fix bugs --- ios/AppMetricaUtils.m | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/AppMetricaUtils.m b/ios/AppMetricaUtils.m index b3baa6a..ccaa031 100644 --- a/ios/AppMetricaUtils.m +++ b/ios/AppMetricaUtils.m @@ -73,8 +73,9 @@ [profile apply:[genderAttribute withValue:YMMGenderTypeFemale]]; } if (configDict[@"age"] != nil) { + NSNumber *age = configDict[@"age"]; id birthDateAttribute = [YMMProfileAttribute birthDate]; - [profile apply:[birthDateAttribute withAge:[configDict[@"age"] unsignedIntegerValue]]]; + [profile apply:[birthDateAttribute withAge:[age unsignedIntegerValue]]]; } if (configDict[@"isNotification"] != nil) { id isNotificationAttribute = [YMMProfileAttribute notificationsEnabled]; diff --git a/package.json b/package.json index 2f8db4d..5202b47 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-appmetrica-next", "title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", - "version": "1.0.6", + "version": "1.0.8", "description": "React Native plugin for AppMetrica analytics tool", "main": "index.js", "scripts": {