From 7992964301523e7721624a9b92b6053883a23a96 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Sun, 26 Jun 2016 20:40:47 -0400 Subject: [PATCH] cleaning up a bit... wip --- RCTAppleHealthKit/RCTAppleHealthKit.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RCTAppleHealthKit/RCTAppleHealthKit.m b/RCTAppleHealthKit/RCTAppleHealthKit.m index 3a8969c..e2efcd9 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(), ^{ - // }); } }]; } -- 2.26.2