saveWeight().md 379 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
save a numeric weight value to Healthkit

`saveWeight` accepts an options object containing a numeric weight value:
```javascript
let options = {
  value: 200
}
```

```javascript
AppleHealthkit.saveWeight(options: Object, (err: Object, results: Object) => {
    if (err) {
        console.log("error saving weight to Healthkit: ", err);
        return;
    }
    // Done
});
```