agencyenterprise / react-native-health

A React Native package to interact with Apple HealthKit
MIT License
799 stars 226 forks source link

Expose sexualActivity methods #371

Open NTag opened 4 months ago

NTag commented 4 months ago

Is your feature request related to a problem? Please describe. I have a RN app allowing people to track their intercourses, and it'd be nice that it could be saved into Apple HealthKit.

Describe the solution you'd like A method to insert a sexualActivity record, with the associated options (if a protection has been used or not).

Describe alternatives you've considered I've looked at the doc but I don't think it's exposed by this library yet.

Additional context Here is how it can be done natively for example: https://dev.to/nitricware/adding-sexual-activity-to-apple-health-via-healthkit-356k Apple official doc: https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/1615769-sexualactivity

Thank you very much for your work! Much appreciated 🙏

NTag commented 3 months ago

Related to https://github.com/agencyenterprise/react-native-health/issues/102 actually.