Commit e16ae36e authored by Greg Wilson's avatar Greg Wilson

Merge branch 'master' of github.com-GregWilson:GregWilson/react-native-apple-healthkit

parents 1029da31 6c51c118
...@@ -27,7 +27,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. ...@@ -27,7 +27,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [getWeightSamples](#getweightsamples) * [getWeightSamples](#getweightsamples)
* [saveWeight](#saveweight) * [saveWeight](#saveweight)
* [getLatestHeight](#getlatestheight) * [getLatestHeight](#getlatestheight)
* [getHeightSamples](#getheightsamples) * [getHeightSamples](#getheightsamples)
* [saveHeight](#saveheight) * [saveHeight](#saveheight)
* [getLatestBmi](#getlatestbmi) * [getLatestBmi](#getlatestbmi)
* [saveBmi](#savebmi) * [saveBmi](#savebmi)
...@@ -380,12 +380,12 @@ the callback function will be called with a `samples` array containing objects w ...@@ -380,12 +380,12 @@ the callback function will be called with a `samples` array containing objects w
```javascript ```javascript
// samples is array of objects // samples is array of objects
[ [
{value: 74.02, startDate: '2016-06-29T17:55:00.000-0400', endDate: '2016-06-29T17:55:00.000-0400' }, {value: 74.02, startDate:'2016-06-29T17:55:00.000-0400', endDate:'2016-06-29T17:55:00.000-0400'},
{value: 74, startDate: '2016-03-12T13:22:00.000-0400', endDate: '2016-03-12T13:22:00.000-0400' }, {value: 74, startDate:'2016-03-12T13:22:00.000-0400', endDate:'2016-03-12T13:22:00.000-0400'},
... ...
] ]
``` ```
*example usage*
```javascript ```javascript
AppleHealthKit.getHeightSamples(options, (err: Object, samples: Array<Object>) => { AppleHealthKit.getHeightSamples(options, (err: Object, samples: Array<Object>) => {
if(this._handleHealthKitError(err, 'getHeightSamples')){ if(this._handleHealthKitError(err, 'getHeightSamples')){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment