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.
getBiologicalSex
Retrieve the user’s biological sex stored in HealthKit. This is a synchronous operation.Signature
Returns
The biological sex value as an enum:
BiologicalSex.notSet(0) - Not set or unknownBiologicalSex.female(1) - FemaleBiologicalSex.male(2) - MaleBiologicalSex.other(3) - Other
Example
getBiologicalSexAsync
Asynchronous version of getBiologicalSex. Use this if you need to await the result or want consistency with other async HealthKit operations.Signature
Returns
Promise that resolves to the biological sex value
Example
Biological sex 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.