@kingstinct/react-native-healthkit
Version:
React Native bindings for HealthKit
13 lines (12 loc) • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMostRecentCategorySample = getMostRecentCategorySample;
const modules_1 = require("../modules");
async function getMostRecentCategorySample(identifier) {
const samples = await modules_1.CategoryTypes.queryCategorySamples(identifier, {
limit: 1,
ascending: false,
});
return samples[0];
}
exports.default = getMostRecentCategorySample;