@kingstinct/react-native-healthkit
Version:
React Native bindings for HealthKit
9 lines • 723 B
JavaScript
import Native from '../native-types';
async function saveQuantitySample(identifier, unit, value, options) {
const start = (options === null || options === void 0 ? void 0 : options.start) || (options === null || options === void 0 ? void 0 : options.end) || new Date();
const end = (options === null || options === void 0 ? void 0 : options.end) || (options === null || options === void 0 ? void 0 : options.start) || new Date();
const metadata = (options === null || options === void 0 ? void 0 : options.metadata) || {};
return Native.saveQuantitySample(identifier, unit, value, start.toISOString(), end.toISOString(), metadata);
}
export default saveQuantitySample;
//# sourceMappingURL=saveQuantitySample.js.map