save a numeric weight value to Healthkit
saveWeight
accepts an options object containing a numeric weight value:
Example input options:
let options = {
value: 200,
}
Call the method:
AppleHealthKit.saveWeight(
(options: HealthInputOptions),
(err: Object, results: number) => {
if (err) {
console.log('error saving weight to Healthkit: ', err)
return
}
// weight successfully saved
},
)
Example output:
200