From b28b9caa56804b1a9d72af8d81a5c47744defd56 Mon Sep 17 00:00:00 2001 From: Salma ElTarzi Date: Thu, 17 Aug 2017 21:14:36 +0200 Subject: [PATCH] :bug: Fix a bug where the setUserAttribute API in iOS mixed the key attribute with the value and vice versa. --- ios/RNInstabug/InstabugReactBridge.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNInstabug/InstabugReactBridge.m b/ios/RNInstabug/InstabugReactBridge.m index 4b695d34a..9310dd956 100644 --- a/ios/RNInstabug/InstabugReactBridge.m +++ b/ios/RNInstabug/InstabugReactBridge.m @@ -236,7 +236,7 @@ - (dispatch_queue_t)methodQueue { [Instabug setReportCategoriesWithTitles:titles iconNames:names]; } -RCT_EXPORT_METHOD(setUserAttribute:(NSString *)value withKey:(NSString *)key) { +RCT_EXPORT_METHOD(setUserAttribute:(NSString *)key withValue:(NSString *)value) { [Instabug setUserAttribute:value withKey:key]; }