react-native-health-symptoms
Version:
A React Native package to interact with Apple HealthKit, including symptoms
37 lines (29 loc) • 648 B
Markdown
# getFlightsClimbed
Get the total flights climbed (1 flight is ~10ft of elevation) on a specific day.
Example input options:
```javascript
let options = {
date: (new Date(2016,5,1)).toISOString(), // optional; default now
includeManuallyAdded: false. // optional: default true
};
```
Call the method:
```javascript
AppleHealthKit.getFlightsClimbed(
(options: HealthInputOptions),
(err: Object, results: HealthValue) => {
if (err) {
return
}
console.log(results)
},
)
```
Example output:
```json
{
"value": 15,
"startDate": "2016-07-08T12:00:00.000-0400",
"endDate": "2016-07-08T12:00:00.000-0400"
}
```