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": {