Commit 79929643 authored by Greg Wilson's avatar Greg Wilson

cleaning up a bit... wip

parent 9f000b66
...@@ -105,8 +105,8 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock ...@@ -105,8 +105,8 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock
- (void)getHealthKitUserWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback - (void)getHealthKitUserWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback
{ {
NSMassFormatter *massFormatter = [[NSMassFormatter alloc] init]; // NSMassFormatter *massFormatter = [[NSMassFormatter alloc] init];
massFormatter.unitStyle = NSFormattingUnitStyleLong; // massFormatter.unitStyle = NSFormattingUnitStyleLong;
// NSMassFormatterUnit weightFormatterUnit = NSMassFormatterUnitPound; // NSMassFormatterUnit weightFormatterUnit = NSMassFormatterUnitPound;
// NSString *weightUnitString = [massFormatter unitStringFromValue:10 unit:weightFormatterUnit]; // NSString *weightUnitString = [massFormatter unitStringFromValue:10 unit:weightFormatterUnit];
...@@ -126,8 +126,6 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock ...@@ -126,8 +126,6 @@ RCT_EXPORT_METHOD(getInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock
double usersWeight = [mostRecentQuantity doubleValueForUnit:weightUnit]; double usersWeight = [mostRecentQuantity doubleValueForUnit:weightUnit];
callback(@[[NSNull null], @(usersWeight)]); callback(@[[NSNull null], @(usersWeight)]);
// dispatch_async(dispatch_get_main_queue(), ^{
// });
} }
}]; }];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment