-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealthService.ts
46 lines (45 loc) · 2.27 KB
/
healthService.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// healthKitService.ts
import AppleHealthKit, { HealthKitPermissions } from "react-native-health";
export const permissions: HealthKitPermissions = {
permissions: {
read: [
AppleHealthKit.Constants.Permissions.StepCount,
AppleHealthKit.Constants.Permissions.HeartRate,
AppleHealthKit.Constants.Permissions.Weight,
AppleHealthKit.Constants.Permissions.Height,
AppleHealthKit.Constants.Permissions.BodyTemperature,
AppleHealthKit.Constants.Permissions.BodyFatPercentage,
AppleHealthKit.Constants.Permissions.LeanBodyMass,
AppleHealthKit.Constants.Permissions.SleepAnalysis,
AppleHealthKit.Constants.Permissions.BloodGlucose,
AppleHealthKit.Constants.Permissions.BloodPressureDiastolic,
AppleHealthKit.Constants.Permissions.OxygenSaturation,
AppleHealthKit.Constants.Permissions.RespiratoryRate,
AppleHealthKit.Constants.Permissions.OxygenSaturation,
AppleHealthKit.Constants.Permissions.Water,
AppleHealthKit.Constants.Permissions.EnergyConsumed,
AppleHealthKit.Constants.Permissions.MindfulSession,
AppleHealthKit.Constants.Permissions.ActiveEnergyBurned,
AppleHealthKit.Constants.Permissions.BasalEnergyBurned,
AppleHealthKit.Constants.Permissions.AppleStandTime,
AppleHealthKit.Constants.Permissions.DistanceWalkingRunning,
AppleHealthKit.Constants.Permissions.DistanceSwimming,
AppleHealthKit.Constants.Permissions.DistanceCycling,
AppleHealthKit.Constants.Permissions.FlightsClimbed,
AppleHealthKit.Constants.Permissions.BloodAlcoholContent,
AppleHealthKit.Constants.Permissions.InsulinDelivery,
AppleHealthKit.Constants.Permissions.Carbohydrates,
AppleHealthKit.Constants.Permissions.Fiber,
AppleHealthKit.Constants.Permissions.DateOfBirth,
AppleHealthKit.Constants.Permissions.Protein,
AppleHealthKit.Constants.Permissions.FatTotal,
AppleHealthKit.Constants.Permissions.EnvironmentalAudioExposure,
AppleHealthKit.Constants.Permissions.HeadphoneAudioExposure,
AppleHealthKit.Constants.Permissions.BloodAlcoholContent,
AppleHealthKit.Constants.Permissions.Electrocardiogram,
AppleHealthKit.Constants.Permissions.BodyMassIndex,
AppleHealthKit.Constants.Permissions.Workout,
],
write: [],
},
};