Commit 37a87f9b authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

updated readme to reflect changes in method names in RCTAppleHealthKit

parent 326e9df2
...@@ -12,7 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. ...@@ -12,7 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [Methods](#methods) * [Methods](#methods)
* [isAvailable](#isavailable) * [isAvailable](#isavailable)
* [initHealthKit](#inithealthkit) * [initHealthKit](#inithealthkit)
* [getCurrentWeight](#getcurrentweight) * [getLatestWeight](#getlatestweight)
* [saveWeight](#saveweight) * [saveWeight](#saveweight)
## Getting started ## Getting started
...@@ -155,12 +155,12 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object ...@@ -155,12 +155,12 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
___ ___
#### **`getCurrentWeight`** #### **`getLatestWeight`**
get the most recent weight value get the most recent weight value
```javascript ```javascript
AppleHealthKit.getCurrentWeight(null, (err: string, weight: number) => { AppleHealthKit.getLatestWeight(null, (err: string, weight: number) => {
if(err){ if(err){
console.log("error getting current weight: ", err); console.log("error getting latest weight: ", err);
return; return;
} }
weight = _.round(weight,1); weight = _.round(weight,1);
......
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