From 37a87f9b42bf2bf94e19385c640b1bdb65288d25 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 27 Jun 2016 19:26:15 -0400 Subject: [PATCH] updated readme to reflect changes in method names in RCTAppleHealthKit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 47149cd..3edabd6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. * [Methods](#methods) * [isAvailable](#isavailable) * [initHealthKit](#inithealthkit) - * [getCurrentWeight](#getcurrentweight) + * [getLatestWeight](#getlatestweight) * [saveWeight](#saveweight) ## Getting started @@ -155,12 +155,12 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object ___ -#### **`getCurrentWeight`** +#### **`getLatestWeight`** get the most recent weight value ```javascript -AppleHealthKit.getCurrentWeight(null, (err: string, weight: number) => { +AppleHealthKit.getLatestWeight(null, (err: string, weight: number) => { if(err){ - console.log("error getting current weight: ", err); + console.log("error getting latest weight: ", err); return; } weight = _.round(weight,1); -- 2.26.2