From 4583de5da0ab036f1bd5897b4d6195db2192aa59 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 27 Jun 2016 19:28:12 -0400 Subject: [PATCH] added getLatestHeight method docs --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3edabd6..f33ef0f 100644 --- a/README.md +++ b/README.md @@ -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/ -- 2.26.2