diff --git a/README.md b/README.md index fa23362811c04a930736da5b7a07d595c4b5e2db..0a385f8afe85979246b146061e6cafbba626e510 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 de72de7223b248d164d410af17f963e2efdb531c..0000000000000000000000000000000000000000 --- 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 2e65efe2a145dda7ee51d1741299f848e5bf752e..0000000000000000000000000000000000000000 --- 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 76f303f0ca14392c1effc5883ef2fc3db7ee5146..17b31e1e5ff79319a9bad51dff9265105f9943c2 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 c9fb2b82f97fecc97a764686477a39b40cea4652..32f4521ab755eab24a3da44613fed4a23953a4c9 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 04decd23720df5a98db9c7a2dde8f6af9b6dc51a..358a8dc29d23f0758c9dcb57cb3554437cbcf70c 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 acb2dea9aec5ec7465a370afe583c0a393890ace..5b2f86f34ca386cca585d5299ec81192fd7782b2 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 10e94f880572477e4ead5125af750162184bb34a..29708a580a58eea854d58634a2abee18c8eb9e13 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 375fcab3997d35f05d12c3b5680f22ea99ec92cc..2d32c7d20736dced1cc225bb42ec6597aa2708a9 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 0000000000000000000000000000000000000000..43cedb3537c565b74733d4e29351443a0b22c120 --- /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 0000000000000000000000000000000000000000..b6a288058d52619d9ba342b1a18d6e277db9e5dd --- /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 0000000000000000000000000000000000000000..ce9a6fd16476d0d49849ff1374af16865e9b958b --- /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 5d6f67054095cacb8bc83a89c495b6bc9217789b..c8a0c6530cb533a3803615023ac109c8a5aa8314 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 32712c591ae5fa2f211598d805b024a12a466729..cb8d5933f19ae53dfa7877de1d67c965863e63e2 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 4bc6feff99e9c25bb4d4df6e2e0d87a2fb1af9e1..ce5e1a602d9d5675c4f53d60a1b4fba05f7869d7 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 89b47fb88fb8b9d7d441f5da31f50f044315787c..308f7855e602df6e728e5e92de133138468738b2 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 d279d4881c38431dd6337da4b823f09f6e592a3f..b9f4f4a359f3409246a240fc98fe1820ea53d8c9 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 e7b1253509187f8d76bb7e60df015048ce836c36..05abf47cd5ae858fb31b7d116ed70c591e93126b 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 84225ec22b646ac8f9b8ce02763ea89a0fd4140c..ffb11c266a82b5c0f7cd9554cbd0fd224ff4584e 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 bd496f9f8e2ef35b536dfe2aee4445413611cf5a..2fd194071605909e0da58bc4cc70e0359e03f2d7 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 100e7d1d014feeaeb004144ac36560ab485d5320..7288387c59b0a626319569b4a7381ac379efcf34 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 96580536638d7e21d40165994faf40f266c5fb09..3e317814a91d59e1d6fe4c0081951829d210542a 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 c6da9359d21ff35f4f105ef4fb5558cfa3c3c998..b6a35b73a4429b747760886206467deac7e37b5b 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 1ab59ffcca3ae61c008a2b3e5de6fb188fe4693a..4374328254f0a78f40f1558629ddb918770dde0b 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 61594e957cb0687182d2bfc5488ef4cf69d6de0a..67bbe86d62958454119def2466a6ed7036c17a6d 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 e0098276549803075265305dee5eede06e210dbc..2fe71331293a7488fce37896c2566402ecd99dce 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 b0984a41bd2e87cfd2f1d9640d97004f3d0febc5..f24f81af12f977c60c59529f260b9b0d538891e5 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 1430592a36de5a6e237468c52f1a541aefb4dd25..e23e4b860b75fa1ef4fe5828aeabb411c85c0f91 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 1ea3ca57d95987adfdd29bd3f7bc3e6dd0293960..118b014443c387a97cfd741a30aa2c1ad2a2bf18 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 e83a16532146b53018e30fcc7cec6af847ccc53c..2cdb4f0b6e745f4368d77254803e0f22f1f23333 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 38380792370b3c6434c392e9ab15b9253f1c05ad..ce7ddb6a7fd41c4dc82f88c7e1bd6c96bc25fb00 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 e5c36d15d988f182f51ef9167bd66061ed4ca4af..1e8292b1a2ec6378220148d724f48c4ef9633353 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 de1615f3df8368182185929251fa9dcb9ac57fee..a990b1248dc99bf2469cc203472cdf92d249461c 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 70e2f9c87c834a4f41306f8b5e1161c0902c981f..d0c235b7b9151187e1db2d6fbc44c92253250f63 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;