diff --git a/README.md b/README.md index 6b453e211739159034c927f1740e05a994c57af0..222c992d67806db2f71cebd5dc874a3836a7ddd2 100644 --- a/README.md +++ b/README.md @@ -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