@kingstinct/react-native-healthkit
Version:
React Native bindings for HealthKit
12 lines (11 loc) • 348 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const modules_1 = require("../modules");
const getMostRecentWorkout = async () => {
const workouts = await modules_1.Workouts.queryWorkoutSamples({
limit: 1,
ascending: false,
});
return workouts[0];
};
exports.default = getMostRecentWorkout;