Commit 0fefa672 authored by 王品堯's avatar 王品堯

round QuantitySamples value

parent 22e6afe1
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
for (HKQuantitySample *sample in results) { for (HKQuantitySample *sample in results) {
HKQuantity *quantity = sample.quantity; HKQuantity *quantity = sample.quantity;
double value = [quantity doubleValueForUnit:unit]; int value = round([quantity doubleValueForUnit:unit]);
int startDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.startDate]; int startDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.startDate];
int endDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.endDate]; int endDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.endDate];
......
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