From cf71ba9889851ac1c7137ac677241c6c0f4e051c Mon Sep 17 00:00:00 2001 From: Batyr K Date: Fri, 17 Jul 2020 19:45:38 +0200 Subject: [PATCH] Update VkontakteManager.m There is a runtime error happening only in last RN versions (might be new iOS version and Obj-C). The error is "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString stringValue]: unrecognized selector sent to instance 0xbb689ad41de6145a'". So following changes work for me. It is not a lot but I thought it would cool to open a PR. --- ios/VkontakteManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/VkontakteManager.m b/ios/VkontakteManager.m index d9f36198..2814a0d3 100644 --- a/ios/VkontakteManager.m +++ b/ios/VkontakteManager.m @@ -56,7 +56,7 @@ - (dispatch_queue_t)methodQueue { RCT_EXPORT_METHOD(initialize: (nonnull NSNumber *) appId) { DMLog(@"Initialize app id %@", appId); - sdk = [VKSdk initializeWithAppId:[appId stringValue]]; + sdk = [VKSdk initializeWithAppId:[NSString stringWithFormat:@"%@", appId]]; [sdk registerDelegate:self]; [sdk setUiDelegate:self]; [VKSdk wakeUpSession:@[] completeBlock:^(VKAuthorizationState state, NSError *error) {}];