From 950fe09616c6f8b6ae78b52eb0bc2253fdd44b20 Mon Sep 17 00:00:00 2001 From: Terrillo Walls Date: Fri, 9 Nov 2018 18:04:07 -0600 Subject: [PATCH] More docs updates.. --- README.md | 11 ++++-- docs/Home.md | 35 ------------------- docs/_isAvailable.md | 1 - docs/getActiveEnergyBurned().md | 2 +- docs/getBasalEnergyBurned().md | 2 +- docs/getBiologicalSex().md | 2 +- docs/getBloodGlucoseSamples().md | 2 +- docs/getBloodPressureSamples().md | 2 +- docs/getBodyTemperatureSamples().md | 2 +- docs/getDailyDistanceCyclingSamples().md | 17 +++++++++ ...getDailyDistanceWalkingRunningSamples().md | 17 +++++++++ docs/getDailyFlightsClimbedSamples().md | 17 +++++++++ docs/getDailyStepCountSamples().md | 2 +- docs/getDateOfBirth().md | 2 +- docs/getDistanceCycling().md | 2 +- docs/getDistanceWalkingRunning().md | 2 +- docs/getFlightsClimbed().md | 2 +- docs/getHeartRateSamples().md | 2 +- docs/getHeightSamples().md | 2 +- docs/getLatestBmi().md | 2 +- docs/getLatestBodyFatPercentage().md | 2 +- docs/getLatestHeight().md | 2 +- docs/getLatestLeanBodyMass().md | 2 +- docs/getLatestWeight().md | 2 +- docs/getRespiratoryRateSamples().md | 2 +- docs/getSleepSamples().md | 2 +- docs/getStepCount().md | 2 +- docs/getWeightSamples().md | 2 +- docs/initStepCountObserver().md | 2 +- docs/isAvailable().md | 2 +- docs/saveBmi().md | 2 +- docs/saveHeight().md | 2 +- docs/saveSteps().md | 2 +- docs/saveWeight().md | 2 +- 34 files changed, 87 insertions(+), 67 deletions(-) delete mode 100644 docs/Home.md delete mode 100644 docs/_isAvailable.md create mode 100644 docs/getDailyDistanceCyclingSamples().md create mode 100644 docs/getDailyDistanceWalkingRunningSamples().md create mode 100644 docs/getDailyFlightsClimbedSamples().md diff --git a/README.md b/README.md index fa233628..0a385f8a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # React Native Apple Healthkit -A React Native bridge module for interacting with Apple Healthkit data. Checkout the [full documentation](https://github.com/terrillo/rn-apple-healthkit/wiki) +A React Native bridge module for interacting with Apple Healthkit data. Checkout the [full documentation](https://github.com/terrillo/rn-apple-healthkit/tree/master/docs) ## Installation @@ -80,6 +80,11 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, results: Object) => 0.6.4v - Basal energy ([#23](https://github.com/terrillo/rn-apple-healthkit/pull/23)) - Fixed issues with saving weight in the past +- Commited the docs to increase pull request support +- Add daily samples for: + - Flights Climbed + - WalkingRunning Distance + - Cycling Distance 0.6.3v - Food and Water ([#19](https://github.com/terrillo/rn-apple-healthkit/pull/19)) @@ -105,8 +110,8 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, results: Object) => * [getBloodPressureSamples](/docs/getbloodpressuresamples().md) * [getBodyTemperatureSamples](/docs/getbodytemperaturesamples().md) * [getDailyDistanceCyclingSamples]() - * [getDailyDistanceWalkingRunningSamples]() - * [getDailyFlightsClimbedSamples]() + * [getDailyDistanceWalkingRunningSamples](/docs/getDailyDistanceWalkingRunningSamples().md) + * [getDailyFlightsClimbedSamples](/docs/getDailyFlightsClimbedSamples().md) * [getDailyStepCountSamples](/docs/getDailyStepCountSamples().md) * [getDateOfBirth](/docs/getDateOfBirth().md) * [getDistanceCycling](/docs/getdistancecycling().md) diff --git a/docs/Home.md b/docs/Home.md deleted file mode 100644 index de72de72..00000000 --- a/docs/Home.md +++ /dev/null @@ -1,35 +0,0 @@ -# React Native Apple Healthkit -A React Native bridge module for interacting with [Apple Healthkit](https://developer.apple.com/Healthkit/) data. - -* Base Methods - * [isAvailable](https://github.com/terrillo/rn-apple-healthkit/wiki/isAvailable()) - * [initHealthKit](https://github.com/terrillo/rn-apple-healthkit/wiki/initHealthKit()) -* Realtime Methods - * [initStepCountObserver](https://github.com/terrillo/rn-apple-healthkit/wiki/initStepCountObserver()) -* Read Methods - * [getBiologicalSex](https://github.com/terrillo/rn-apple-healthkit/wiki/getBiologicalSex()) - * [getBloodGlucoseSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getbloodglucosesamples()) - * [getBloodPressureSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getbloodpressuresamples()) - * [getBodyTemperatureSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getbodytemperaturesamples()) - * [getDailyStepCountSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getDailyStepCountSamples()) - * [getDateOfBirth](https://github.com/terrillo/rn-apple-healthkit/wiki/getDateOfBirth()) - * [getDistanceCycling](https://github.com/terrillo/rn-apple-healthkit/wiki/getdistancecycling()) - * [getDistanceWalkingRunning](https://github.com/terrillo/rn-apple-healthkit/wiki/getDistanceWalkingRunning()) - * [getFlightsClimbed](https://github.com/terrillo/rn-apple-healthkit/wiki/getflightsclimbed()) - * [getHeartRateSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getheartratesamples()) - * [getHeightSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getheightsamples()) - * [getLatestBmi](https://github.com/terrillo/rn-apple-healthkit/wiki/getlatestbmi()) - * [getLatestBodyFatPercentage](https://github.com/terrillo/rn-apple-healthkit/wiki/getlatestbodyfatpercentage()) - * [getLatestHeight](https://github.com/terrillo/rn-apple-healthkit/wiki/getlatestheight()) - * [getLatestLeanBodyMass](https://github.com/terrillo/rn-apple-healthkit/wiki/getlatestleanbodymass()) - * [getLatestWeight](https://github.com/terrillo/rn-apple-healthkit/wiki/getlatestweight()) - * [getRespiratoryRateSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getrespiratoryratesamples()) - * [getSleepSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getsleepsamples()) - * [getStepCount](https://github.com/terrillo/rn-apple-healthkit/wiki/getStepCount()) - * [getWeightSamples](https://github.com/terrillo/rn-apple-healthkit/wiki/getweightsamples()) -* Write Methods - * [saveBmi](https://github.com/terrillo/rn-apple-healthkit/wiki/savebmi()) - * [saveHeight](https://github.com/terrillo/rn-apple-healthkit/wiki/saveheight()) - * [saveMindfulSession](https://github.com/terrillo/rn-apple-healthkit/wiki/saveMindfulSession()) - * [saveWeight](https://github.com/terrillo/rn-apple-healthkit/wiki/saveweight()) - * [saveSteps](https://github.com/terrillo/rn-apple-healthkit/wiki/saveSteps()) diff --git a/docs/_isAvailable.md b/docs/_isAvailable.md deleted file mode 100644 index 2e65efe2..00000000 --- a/docs/_isAvailable.md +++ /dev/null @@ -1 +0,0 @@ -a \ No newline at end of file diff --git a/docs/getActiveEnergyBurned().md b/docs/getActiveEnergyBurned().md index 76f303f0..17b31e1e 100644 --- a/docs/getActiveEnergyBurned().md +++ b/docs/getActiveEnergyBurned().md @@ -9,7 +9,7 @@ let options = { ``` ```javascript -AppleHealthkit.getActiveEnergyBurned(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getActiveEnergyBurned(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getBasalEnergyBurned().md b/docs/getBasalEnergyBurned().md index c9fb2b82..32f4521a 100644 --- a/docs/getBasalEnergyBurned().md +++ b/docs/getBasalEnergyBurned().md @@ -7,7 +7,7 @@ let options = { ``` ```javascript -AppleHealthkit.getBasalEnergyBurned(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getBasalEnergyBurned(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getBiologicalSex().md b/docs/getBiologicalSex().md index 04decd23..358a8dc2 100644 --- a/docs/getBiologicalSex().md +++ b/docs/getBiologicalSex().md @@ -8,7 +8,7 @@ Get the biological sex (gender). If the `BiologicalSex` read permission is missi | other | HKBiologicalSexOther | ```javascript -AppleHealthkit.getBiologicalSex(null, (err: Object, results: Object) => { +AppleHealthKit.getBiologicalSex(null, (err: Object, results: Object) => { if (this._handleHealthkitError(err, 'getBiologicalSex')) { return; } diff --git a/docs/getBloodGlucoseSamples().md b/docs/getBloodGlucoseSamples().md index acb2dea9..5b2f86f3 100644 --- a/docs/getBloodGlucoseSamples().md +++ b/docs/getBloodGlucoseSamples().md @@ -13,7 +13,7 @@ Available units are: `'mmolPerL'`, `'mgPerdL'`. The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields ```javascript -AppleHealthkit.getBloodGlucoseSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getBloodGlucoseSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getBloodPressureSamples().md b/docs/getBloodPressureSamples().md index 10e94f88..29708a58 100644 --- a/docs/getBloodPressureSamples().md +++ b/docs/getBloodPressureSamples().md @@ -12,7 +12,7 @@ let options = { The callback function will be called with a `samples` array containing objects with *bloodPressureSystolicValue*, *bloodPressureDiastolicValue*, *startDate*, and *endDate* fields ```javascript -AppleHealthkit.getBloodPressureSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getBloodPressureSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getBodyTemperatureSamples().md b/docs/getBodyTemperatureSamples().md index 375fcab3..2d32c7d2 100644 --- a/docs/getBodyTemperatureSamples().md +++ b/docs/getBodyTemperatureSamples().md @@ -14,7 +14,7 @@ Available units are: `'fahrenheit'`, `'celsius'`. The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields. ```javascript -AppleHealthkit.getBodyTemperatureSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getBodyTemperatureSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getDailyDistanceCyclingSamples().md b/docs/getDailyDistanceCyclingSamples().md new file mode 100644 index 00000000..43cedb35 --- /dev/null +++ b/docs/getDailyDistanceCyclingSamples().md @@ -0,0 +1,17 @@ +```javascript +let options = { + startDate: (new Date(2016,4,27)).toISOString(), // required + endDate: (new Date()).toISOString(), // optional; default now + ascending: false, // optional; default false + limit:10, // optional; default no limit +}; +``` + +```javascript +AppleHealthKit.getDailyDistanceCyclingSamples(options, (err: Object, results: Array) => { + if (err) { + return; + } + console.log(results) +}); +``` diff --git a/docs/getDailyDistanceWalkingRunningSamples().md b/docs/getDailyDistanceWalkingRunningSamples().md new file mode 100644 index 00000000..b6a28805 --- /dev/null +++ b/docs/getDailyDistanceWalkingRunningSamples().md @@ -0,0 +1,17 @@ +```javascript +let options = { + startDate: (new Date(2016,4,27)).toISOString(), // required + endDate: (new Date()).toISOString(), // optional; default now + ascending: false, // optional; default false + limit:10, // optional; default no limit +}; +``` + +```javascript +AppleHealthKit.getDailyDistanceWalkingRunningSamples(options, (err: Object, results: Array) => { + if (err) { + return; + } + console.log(results) +}); +``` diff --git a/docs/getDailyFlightsClimbedSamples().md b/docs/getDailyFlightsClimbedSamples().md new file mode 100644 index 00000000..ce9a6fd1 --- /dev/null +++ b/docs/getDailyFlightsClimbedSamples().md @@ -0,0 +1,17 @@ +```javascript +let options = { + startDate: (new Date(2016,4,27)).toISOString(), // required + endDate: (new Date()).toISOString(), // optional; default now + ascending: false, // optional; default false + limit:10, // optional; default no limit +}; +``` + +```javascript +AppleHealthKit.getDailyFlightsClimbedSamples(options, (err: Object, results: Array) => { + if (err) { + return; + } + console.log(results) +}); +``` diff --git a/docs/getDailyStepCountSamples().md b/docs/getDailyStepCountSamples().md index 5d6f6705..c8a0c653 100644 --- a/docs/getDailyStepCountSamples().md +++ b/docs/getDailyStepCountSamples().md @@ -9,7 +9,7 @@ let options = { ``` ```javascript - AppleHealthkit.getDailyStepCountSamples(options: Object, (err: Object, results: Array) => { + AppleHealthKit.getDailyStepCountSamples(options: Object, (err: Object, results: Array) => { if (this._handleHealthkitError(err, 'getDailyStepCountSamples')) { return; } diff --git a/docs/getDateOfBirth().md b/docs/getDateOfBirth().md index 32712c59..cb8d5933 100644 --- a/docs/getDateOfBirth().md +++ b/docs/getDateOfBirth().md @@ -2,7 +2,7 @@ Get the date of birth. On success, the callback function will be provided with a `res` object containing dob `value: string` (ISO timestamp), and `age: number` (age in years): ```javascript -AppleHealthkit.getDateOfBirth(null, (err: Object, results: Object) => { +AppleHealthKit.getDateOfBirth(null, (err: Object, results: Object) => { if (this._handleHealthkitError(err, 'getDateOfBirth')) { return; } diff --git a/docs/getDistanceCycling().md b/docs/getDistanceCycling().md index 4bc6feff..ce5e1a60 100644 --- a/docs/getDistanceCycling().md +++ b/docs/getDistanceCycling().md @@ -9,7 +9,7 @@ let options = { ``` ```javascript -AppleHealthkit.getDistanceCycling(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getDistanceCycling(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getDistanceWalkingRunning().md b/docs/getDistanceWalkingRunning().md index 89b47fb8..308f7855 100644 --- a/docs/getDistanceWalkingRunning().md +++ b/docs/getDistanceWalkingRunning().md @@ -10,7 +10,7 @@ let options = { ``` ```javascript -AppleHealthkit.getDistanceWalkingRunning(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getDistanceWalkingRunning(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getFlightsClimbed().md b/docs/getFlightsClimbed().md index d279d488..b9f4f4a3 100644 --- a/docs/getFlightsClimbed().md +++ b/docs/getFlightsClimbed().md @@ -8,7 +8,7 @@ let options = { ``` ```javascript -AppleHealthkit.getFlightsClimbed(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getFlightsClimbed(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getHeartRateSamples().md b/docs/getHeartRateSamples().md index e7b12535..05abf47c 100644 --- a/docs/getHeartRateSamples().md +++ b/docs/getHeartRateSamples().md @@ -11,7 +11,7 @@ let options = { The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields ```javascript -AppleHealthkit.getHeartRateSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getHeartRateSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getHeightSamples().md b/docs/getHeightSamples().md index 84225ec2..ffb11c26 100644 --- a/docs/getHeightSamples().md +++ b/docs/getHeightSamples().md @@ -10,7 +10,7 @@ let options = { ``` ```javascript -AppleHealthkit.getHeightSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getHeightSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getLatestBmi().md b/docs/getLatestBmi().md index bd496f9f..2fd19407 100644 --- a/docs/getLatestBmi().md +++ b/docs/getLatestBmi().md @@ -2,7 +2,7 @@ Get the most recent BMI sample. On success, the callback function will be provided with a `bmi` object containing the BMI `value`, and the `startDate` and `endDate` of the sample. *Note: startDate and endDate will be the same as bmi samples are saved at a specific point in time.* ```javascript -AppleHealthkit.getLatestBmi(null, (err: string, results: Object) => { +AppleHealthKit.getLatestBmi(null, (err: string, results: Object) => { if (err) { console.log("error getting latest bmi data: ", err); return; diff --git a/docs/getLatestBodyFatPercentage().md b/docs/getLatestBodyFatPercentage().md index 100e7d1d..7288387c 100644 --- a/docs/getLatestBodyFatPercentage().md +++ b/docs/getLatestBodyFatPercentage().md @@ -3,7 +3,7 @@ Get the most recent body fat percentage. The percentage value is a number betwee On success, the callback function will be provided with a `bodyFatPercentage` object containing the body fat percentage `value`, and the `startDate` and `endDate` of the sample. *Note: startDate and endDate will be the same as bodyFatPercentage samples are saved at a specific point in time.* ```javascript -AppleHealthkit.getLatestBodyFatPercentage(null, (err: Object, results: Object) => { +AppleHealthKit.getLatestBodyFatPercentage(null, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getLatestHeight().md b/docs/getLatestHeight().md index 96580536..3e317814 100644 --- a/docs/getLatestHeight().md +++ b/docs/getLatestHeight().md @@ -3,7 +3,7 @@ Get the most recent height value. On success, the callback function will be provided with a `height` object containing the height `value`, and the `startDate` and `endDate` of the height sample. *Note: startDate and endDate will be the same as height samples are saved at a specific point in time.* ```javascript -AppleHealthkit.getLatestHeight(null, (err: string, results: Object) => { +AppleHealthKit.getLatestHeight(null, (err: string, results: Object) => { if (err) { console.log("error getting latest height: ", err); return; diff --git a/docs/getLatestLeanBodyMass().md b/docs/getLatestLeanBodyMass().md index c6da9359..b6a35b73 100644 --- a/docs/getLatestLeanBodyMass().md +++ b/docs/getLatestLeanBodyMass().md @@ -3,7 +3,7 @@ Get the most recent lean body mass. The value is a number representing the weigh On success, the callback function will be provided with a `leanBodyMass` object containing the leanBodyMass `value`, and the `startDate` and `endDate` of the sample. *Note: startDate and endDate will be the same as leanBodyMass samples are saved at a specific point in time.* ```javascript - AppleHealthkit.getLatestLeanBodyMass(null, (err: Object, results: Object) => { + AppleHealthKit.getLatestLeanBodyMass(null, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getLatestWeight().md b/docs/getLatestWeight().md index 1ab59ffc..43743282 100644 --- a/docs/getLatestWeight().md +++ b/docs/getLatestWeight().md @@ -9,7 +9,7 @@ let options = { ``` ```javascript -AppleHealthkit.getLatestWeight(options, (err: string, results: Object) => { +AppleHealthKit.getLatestWeight(options, (err: string, results: Object) => { if (err) { console.log("error getting latest weight: ", err); return; diff --git a/docs/getRespiratoryRateSamples().md b/docs/getRespiratoryRateSamples().md index 61594e95..67bbe86d 100644 --- a/docs/getRespiratoryRateSamples().md +++ b/docs/getRespiratoryRateSamples().md @@ -13,7 +13,7 @@ let options = { The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields ```javascript -AppleHealthkit.getRespiratoryRateSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getRespiratoryRateSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getSleepSamples().md b/docs/getSleepSamples().md index e0098276..2fe71331 100644 --- a/docs/getSleepSamples().md +++ b/docs/getSleepSamples().md @@ -20,7 +20,7 @@ The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields ```javascript -AppleHealthkit.getSleepSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getSleepSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/getStepCount().md b/docs/getStepCount().md index b0984a41..f24f81af 100644 --- a/docs/getStepCount().md +++ b/docs/getStepCount().md @@ -9,7 +9,7 @@ let options = { ``` ```javascript -AppleHealthkit.getStepCount(options: Object, (err: Object, results: Object) => { +AppleHealthKit.getStepCount(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/getWeightSamples().md b/docs/getWeightSamples().md index 1430592a..e23e4b86 100644 --- a/docs/getWeightSamples().md +++ b/docs/getWeightSamples().md @@ -11,7 +11,7 @@ let options = { ``` ```javascript -AppleHealthkit.getWeightSamples(options, (err: Object, results: Array) => { +AppleHealthKit.getWeightSamples(options, (err: Object, results: Array) => { if (err) { return; } diff --git a/docs/initStepCountObserver().md b/docs/initStepCountObserver().md index 1ea3ca57..118b0144 100644 --- a/docs/initStepCountObserver().md +++ b/docs/initStepCountObserver().md @@ -8,7 +8,7 @@ listen to the NativeAppEventEmitter `change:steps` event and re-fetch relevent step count data in the event handler. The `initStepCountObserver` method should be called after Healthkit has been -successfully initialized (AppleHealthkit.initHealthKit has been called without +successfully initialized (AppleHealthKit.initHealthKit has been called without error). ```javascript diff --git a/docs/isAvailable().md b/docs/isAvailable().md index e83a1653..2cdb4f0b 100644 --- a/docs/isAvailable().md +++ b/docs/isAvailable().md @@ -1,7 +1,7 @@ Check for Healthkit availability ```javascript -import AppleHealthkit from 'rn-apple-healthkit'; +import AppleHealthKit from 'rn-apple-healthkit'; AppleHealthKit.isAvailable((err: Object, available: boolean) => { if (err) { diff --git a/docs/saveBmi().md b/docs/saveBmi().md index 38380792..ce7ddb6a 100644 --- a/docs/saveBmi().md +++ b/docs/saveBmi().md @@ -7,7 +7,7 @@ let options = { } ``` ```javascript -AppleHealthkit.saveBmi(options: Object, (err: Object, results: Object) => { +AppleHealthKit.saveBmi(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/saveHeight().md b/docs/saveHeight().md index e5c36d15..1e8292b1 100644 --- a/docs/saveHeight().md +++ b/docs/saveHeight().md @@ -8,7 +8,7 @@ let options = { ``` ```javascript -AppleHealthkit.saveHeight(options: Object, (err: Object, results: Object) => { +AppleHealthKit.saveHeight(options: Object, (err: Object, results: Object) => { if (err) { return; } diff --git a/docs/saveSteps().md b/docs/saveSteps().md index de1615f3..a990b124 100644 --- a/docs/saveSteps().md +++ b/docs/saveSteps().md @@ -14,7 +14,7 @@ let options = { ``` ```javascript -AppleHealthkit.saveSteps(options, (err, res) => { +AppleHealthKit.saveSteps(options, (err, res) => { if (this._handleHKError(err, 'saveSteps')) { return; } diff --git a/docs/saveWeight().md b/docs/saveWeight().md index 70e2f9c8..d0c235b7 100644 --- a/docs/saveWeight().md +++ b/docs/saveWeight().md @@ -8,7 +8,7 @@ let options = { ``` ```javascript -AppleHealthkit.saveWeight(options: Object, (err: Object, results: Object) => { +AppleHealthKit.saveWeight(options: Object, (err: Object, results: Object) => { if (err) { console.log("error saving weight to Healthkit: ", err); return;