You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call AppleHealthKit.getWaterSamples with the unit within the options object. e.g.: const waterSamplesOptions: HealthInputOptions = { startDate: user?.created_at, unit: 'fluidOunceUS'};
See that even changing the unit value, it will always return as literUnit. Besides, neither 'fluidOunceUS' or 'liter' are valid
Expected behavior
It should return the water samples based on the unit value
Additional context
I want to get the fluidounces type instead of liter, and I'd like to retrieve it from the health kit instead of parsing the data.
The text was updated successfully, but these errors were encountered:
Describe the bug
The getWaterSamples doesn't accept different units even though the documentation says it does. (https://github.com/agencyenterprise/react-native-health/blob/master/docs/getWaterSamples.md)
To Reproduce
Steps to reproduce the behavior:
AppleHealthKit.getWaterSamples
with the unit within the options object. e.g.:const waterSamplesOptions: HealthInputOptions = { startDate: user?.created_at, unit: 'fluidOunceUS'};
unit
value, it will always return as literUnit. Besides, neither 'fluidOunceUS' or 'liter' are validExpected behavior
It should return the water samples based on the unit value
Additional context
I want to get the fluidounces type instead of liter, and I'd like to retrieve it from the health kit instead of parsing the data.
The text was updated successfully, but these errors were encountered: