Commit ae622c70 authored by Greg Wilson's avatar Greg Wilson

changed body_saveWeight method to get weight from value field of options...

changed body_saveWeight method to get weight from value field of options instead of weight field to be consistent
parent 8453d910
......@@ -39,7 +39,8 @@
- (void)body_saveWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback
{
double weight= [[input objectForKey:@"weight"] doubleValue];
// double weight= [[input objectForKey:@"weight"] doubleValue];
double weight = [RCTAppleHealthKit doubleValueFromOptions:input];
NSDate *sampleDate = [RCTAppleHealthKit dateFromOptionsDefaultNow:input];
HKUnit *unit = [RCTAppleHealthKit hkUnitFromOptions:input];
......
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