Commit 4583de5d authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

added getLatestHeight method docs

parent 37a87f9b
......@@ -14,6 +14,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [initHealthKit](#inithealthkit)
* [getLatestWeight](#getlatestweight)
* [saveWeight](#saveweight)
* [getLatestHeight](#getlatestheight)
## Getting started
......@@ -187,4 +188,18 @@ AppleHealthKit.saveWeight(saveOptions, (err, res) => {
});
```
___
#### **`getLatestHeight`**
get the most recent height value
```javascript
AppleHealthKit.getLatestHeight(null, (err: string, height: number) => {
if(err){
console.log("error getting latest height: ", err);
return;
}
// do something with the height value...
});
```
[Apple HealthKit]: https://developer.apple.com/healthkit/
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