Open
Description
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:
- 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.