Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kingstinct/react-native-healthkit/llms.txt
Use this file to discover all available pages before exploring further.
getBloodType
Retrieve the user’s blood type stored in HealthKit. This is a synchronous operation.Signature
Returns
The blood type value as an enum:
BloodType.notSet(0) - Not set or unknownBloodType.aPositive(1) - A+BloodType.aNegative(2) - A-BloodType.bPositive(3) - B+BloodType.bNegative(4) - B-BloodType.abPositive(5) - AB+BloodType.abNegative(6) - AB-BloodType.oPositive(7) - O+BloodType.oNegative(8) - O-
Example
getBloodTypeAsync
Asynchronous version of getBloodType. Use this if you need to await the result or want consistency with other async HealthKit operations.Signature
Returns
Promise that resolves to the blood type value
Example
Blood type is a characteristic stored in the user’s HealthKit profile. It cannot be changed by apps and is set by the user in the Health app Medical ID.
You need to request read authorization for characteristics before accessing this data. This is typically done during initial app setup with
requestAuthorization.