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