react-native-health icon indicating copy to clipboard operation
react-native-health copied to clipboard

Total Fat samples?

Open bvelasquez opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

No

Describe the solution you'd like A clear and concise description of what you want to happen.

I've noticed that permission to get total fat is available, but there is no getter for this. Is there a way to get the total fat consumed (dietary). Carbohydrates and Proteins are currently available.

A getTotalFatSamples().

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

bvelasquez avatar Jun 05 '21 01:06 bvelasquez

Actually, there is a saveFood() in RCTAppleHealthKit+Methods_Dietary.m, maybe a getFood() is better than a getTotalFatSamples(), so we can get all the food entries.

bvelasquez avatar Jun 05 '21 01:06 bvelasquez

I am closing this issue since the PR is already merged.

RuanAzevedo avatar Jan 03 '23 19:01 RuanAzevedo