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.
Overview
The Fitzpatrick skin type is a classification system for skin types based on their response to sun exposure. It ranges from Type I (very fair skin that always burns) to Type VI (deeply pigmented dark skin that never burns).getFitzpatrickSkinType
Retrieve the user’s Fitzpatrick skin type stored in HealthKit. This is a synchronous operation.Signature
Returns
The Fitzpatrick skin type value as an enum:
FitzpatrickSkinType.notSet(0) - Not set or unknownFitzpatrickSkinType.I(1) - Type I: Pale white skin, always burns, never tansFitzpatrickSkinType.II(2) - Type II: White skin, usually burns, tans minimallyFitzpatrickSkinType.III(3) - Type III: White to light brown skin, sometimes burns, tans uniformlyFitzpatrickSkinType.IV(4) - Type IV: Moderate brown skin, burns minimally, tans easilyFitzpatrickSkinType.V(5) - Type V: Dark brown skin, rarely burns, tans very easilyFitzpatrickSkinType.VI(6) - Type VI: Deeply pigmented dark brown to black skin, never burns
Example
getFitzpatrickSkinTypeAsync
Asynchronous version of getFitzpatrickSkinType. Use this if you need to await the result or want consistency with other async HealthKit operations.Signature
Returns
Promise that resolves to the Fitzpatrick skin type value
Example
Fitzpatrick skin 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 settings.
You need to request read authorization for characteristics before accessing this data. This is typically done during initial app setup with
requestAuthorization.