save a percentage body fat value to Healthkit
saveBodyFatPercentage
accepts an options object containing a percent value:
Example input options:
let options = {
value: 16.7, // 16.7%
}
Call the method:
AppleHealthKit.saveBodyFatPercentage(
(options: HealthInputOptions),
(err: Object, results: number) => {
if (err) {
return
}
// body fat percentage successfully saved
},
)
Example output:
16.7