@kingstinct/react-native-healthkit
Version:
React Native bindings for HealthKit
14 lines (13 loc) • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const modules_1 = require("../modules");
const getWorkoutById = async (uuid) => {
const workouts = await modules_1.Workouts.queryWorkoutSamples({
limit: 1,
filter: {
uuids: [uuid],
},
});
return workouts[0];
};
exports.default = getWorkoutById;