Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 432 Bytes

saveBmi.md

File metadata and controls

33 lines (25 loc) · 432 Bytes

saveBmi

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