agencyenterprise / react-native-health

A React Native package to interact with Apple HealthKit
MIT License
880 stars 235 forks source link

Add support for HKQuantityTypeIdentifierDistanceDownhillSnowSports #238

Open MasterHamster opened 2 years ago

MasterHamster commented 2 years ago

Right now the package does not support requesting permission for SnowSports data.

I would be really happy if you would add it :)

link related: https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports?language=objc

MasterHamster commented 2 years ago

Can anybody please help me i need code example to request for permissions and then get date for DownhillSkiing

dev-john-nguyen commented 2 years ago

You could probably see how I accomplished adding permissions for workout routes in this pull request #223. You will most likely need to add the permission to the typesandpermission file.

walterholohan commented 2 years ago

I just added one for RunningSpeed if you want to use this PR as an example - https://github.com/agencyenterprise/react-native-health/pull/249