diff --git a/RCTAppleHealthKit/RCTAppleHealthKit.m b/RCTAppleHealthKit/RCTAppleHealthKit.m index 3a8969ca7f3229a0810bb16fb3c76ea52e1e658f..e2efcd902df0e093ce3dd24adf027ddcdda8f4ab 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit.m @@ -105,8 +105,8 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock - (void)getHealthKitUserWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback { - NSMassFormatter *massFormatter = [[NSMassFormatter alloc] init]; - massFormatter.unitStyle = NSFormattingUnitStyleLong; +// NSMassFormatter *massFormatter = [[NSMassFormatter alloc] init]; +// massFormatter.unitStyle = NSFormattingUnitStyleLong; // NSMassFormatterUnit weightFormatterUnit = NSMassFormatterUnitPound; // NSString *weightUnitString = [massFormatter unitStringFromValue:10 unit:weightFormatterUnit]; @@ -126,8 +126,6 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock double usersWeight = [mostRecentQuantity doubleValueForUnit:weightUnit]; callback(@[[NSNull null], @(usersWeight)]); - // dispatch_async(dispatch_get_main_queue(), ^{ - // }); } }]; }