@kingstinct/react-native-healthkit 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -716,13 +716,15 @@ class ReactNativeHealthkit: RCTEventEmitter {
|
|
|
716
716
|
|
|
717
717
|
#if canImport(WorkoutKit)
|
|
718
718
|
if #available(iOS 17.0, *) {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
719
|
+
Task {
|
|
720
|
+
do {
|
|
721
|
+
let workoutplan = try await workout.workoutPlan
|
|
722
|
+
if let workoutplanId = workoutplan?.id {
|
|
723
|
+
dict["workoutPlanId"] = workoutplanId.uuidString
|
|
724
|
+
}
|
|
725
|
+
} catch {
|
|
726
|
+
// handle error
|
|
723
727
|
}
|
|
724
|
-
} catch {
|
|
725
|
-
// handle error
|
|
726
728
|
}
|
|
727
729
|
}
|
|
728
730
|
#endif
|