react-native-health-symptoms
Version:
A React Native package to interact with Apple HealthKit, including symptoms
28 lines (22 loc) • 606 B
Markdown
# getBiologicalSex
Get the biological sex (gender). If the `BiologicalSex` read permission is missing or the user has denied it then the value will be `unknown`. The possible values are:
| Value | HKBiologicalSex |
| ------- | --------------------- |
| unknown | HKBiologicalSexNotSet |
| male | HKBiologicalSexMale |
| female | HKBiologicalSexFemale |
| other | HKBiologicalSexOther |
```javascript
AppleHealthKit.getBiologicalSex(null, (err: Object, results: Object) => {
if (err) {
return
}
console.log(results)
})
```
Example output:
```json
{
"value": "female"
}
```