save a numeric BMI value to Healthkit
saveBmi
accepts an options object containing a numeric BMI value:
Example input options:
let options = {
value: 27.2,
}
Call the method:
AppleHealthKit.saveBmi(
(options: HealthInputOptions),
(err: Object, results: number) => {
if (err) {
return
}
// BMI successfully saved
},
)
Example output:
16.7