Commit 3a98ad16 authored by Greg Wilson's avatar Greg Wilson

Merge branch 'master' of github.com-GregWilson:GregWilson/react-native-apple-healthkit

parents 26fe7818 f7ce14a3
...@@ -13,6 +13,8 @@ A React Native bridge module for interacting with [Apple HealthKit] data. ...@@ -13,6 +13,8 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [Usage](#usage) * [Usage](#usage)
* [Documentation](#documentation) * [Documentation](#documentation)
* [Permissions](#permissions) * [Permissions](#permissions)
* [Read](#read-permissions)
* [Write](#write-permissions)
* [Methods](#methods) * [Methods](#methods)
* [isAvailable](#isavailable) * [isAvailable](#isavailable)
* [initHealthKit](#inithealthkit) * [initHealthKit](#inithealthkit)
...@@ -112,35 +114,33 @@ AppleHealthKit.saveWeight({value:myWeight}, (err, res) => { ...@@ -112,35 +114,33 @@ AppleHealthKit.saveWeight({value:myWeight}, (err, res) => {
The available HealthKit permissions to use with `initHealthKit` The available HealthKit permissions to use with `initHealthKit`
Read Permissions: ##### Read Permissions
| Key | Healthkit identifier type | | Permission | HealthKit Identifier Type |
-------------------------------------------------------------------------- |-------------------|-----------------------------------------------|
| Height | HKQuantityTypeIdentifierHeight | | Height | HKQuantityTypeIdentifierHeight |
| Weight | HKQuantityTypeIdentifierBodyMass | | Weight | HKQuantityTypeIdentifierBodyMass |
| BodyFatPercentage | HKQuantityTypeIdentifierBodyFatPercentage |
| BodyMassIndex | HKQuantityTypeIdentifierBodyMassIndex |
Height HKQuantityTypeIdentifierHeight | LeanBodyMass | HKQuantityTypeIdentifierLeanBodyMass |
Weight HKQuantityTypeIdentifierBodyMass | Steps | HKQuantityTypeIdentifierStepCount |
BodyFatPercentage HKQuantityTypeIdentifierBodyFatPercentage | BiologicalSex | HKCharacteristicTypeIdentifierBiologicalSex |
BodyMassIndex HKQuantityTypeIdentifierBodyMassIndex | DateOfBirth | HKCharacteristicTypeIdentifierDateOfBirth |
LeanBodyMass HKQuantityTypeIdentifierLeanBodyMass | DietaryEnergy | HKQuantityTypeIdentifierDietaryEnergyConsumed |
Steps HKQuantityTypeIdentifierStepCount | ActiveEnergy | HKQuantityTypeIdentifierActiveEnergyBurned |
BiologicalSex HKCharacteristicTypeIdentifierBiologicalSex
DateOfBirth HKCharacteristicTypeIdentifierDateOfBirth ##### Write Permissions
DietaryEnergy HKQuantityTypeIdentifierDietaryEnergyConsumed
ActiveEnergy HKQuantityTypeIdentifierActiveEnergyBurned | Permission | HealthKit Identifier Type |
|-------------------|-----------------------------------------------|
Write Permissions: | Height | HKQuantityTypeIdentifierHeight |
| Weight | HKQuantityTypeIdentifierBodyMass |
Height HKQuantityTypeIdentifierHeight | BodyFatPercentage | HKQuantityTypeIdentifierBodyFatPercentage |
Weight HKQuantityTypeIdentifierBodyMass | BodyMassIndex | HKQuantityTypeIdentifierBodyMassIndex |
BodyFatPercentage HKQuantityTypeIdentifierBodyFatPercentage | LeanBodyMass | HKQuantityTypeIdentifierLeanBodyMass |
BodyMassIndex HKQuantityTypeIdentifierBodyMassIndex | Steps | HKQuantityTypeIdentifierStepCount |
LeanBodyMass HKQuantityTypeIdentifierLeanBodyMass | DietaryEnergy | HKQuantityTypeIdentifierDietaryEnergyConsumed |
Steps HKQuantityTypeIdentifierStepCount | ActiveEnergy | HKQuantityTypeIdentifierActiveEnergyBurned |
DietaryEnergy HKQuantityTypeIdentifierDietaryEnergyConsumed
ActiveEnergy HKQuantityTypeIdentifierActiveEnergyBurned
### Options ### Options
......
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