diff --git a/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m b/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m index 13e3a5e4..5ff608c3 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit+TypesAndPermissions.m @@ -18,7 +18,9 @@ - (nullable HKObjectType *)getReadPermFromText:(nonnull NSString*)key { float systemVersion = deviceInfo.systemVersion.floatValue; // Characteristic Identifiers - if ([@"Height" isEqualToString: key]) { + if ([@"DateOfBirth" isEqualToString: key]) { + return [HKObjectType characteristicTypeForIdentifier:HKCharacteristicTypeIdentifierDateOfBirth]; + }else if ([@"Height" isEqualToString: key]) { return [HKObjectType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeight]; }else if ([@"Weight" isEqualToString: key]) { return [HKObjectType quantityTypeForIdentifier:HKQuantityTypeIdentifierBodyMass];