GregWilson / react-native-apple-healthkit

A React Native bridge module for interacting with Apple HealthKit data
176 stars 42 forks source link

Save mindfulness session #14

Closed skleest closed 6 years ago

skleest commented 7 years ago

Saves mindfulness session

terrillo commented 7 years ago

@skleest can you update the readme as well?

paulief commented 7 years ago

@terrillo I was just wondering if you think this'll be merged soon.

Also, just a related question for @skleest : Do I need to target iOS 10 only to use this? Or is there a way to conditionally include the Mindfulness part of the library on older SDKs?

Thanks guys for all your work on this!

simonstead commented 7 years ago

Yeah I'd love to know the progress on this too 😀

EnricoGallus commented 7 years ago

+1

seanadkinson commented 7 years ago

@skleest I've published a branch that can read Mindful Minutes (maybe I should rename to Mindful Session?). The repo is here: https://github.com/ProvataHealth/react-native-apple-healthkit

It's available on npm with yarn add react-native-apple-healthkit-rn0.40@0.3.2

If you are interested in creating a PR with the ability to write mindful minutes, I'll merge and publish from that repo. Otherwise I'll probably get to it once we need that ability in our app.

skleest commented 7 years ago

Hi @paulief, I've been using it for only iOS 10+ using JS (check for device info), and it hasn't been a problem for iOS <10. @seanadkinson this PR includes reading as well!

Currently I'm using RN 0.39 so I'm refraining from updating this repo; if anyone else can fix the small merge conflict, should be good to go.