From f388c49f8eb94634fe587ba9000356f3410eab09 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Sat, 9 Jul 2016 12:43:48 -0400 Subject: [PATCH] update readme --- README.md | 12 +++++++++++- examples/StepsDemo/app/components/home/index.js | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a1e534..3965f99 100644 --- a/README.md +++ b/README.md @@ -308,7 +308,17 @@ let options = { endDate: (new Date()).toISOString() // optional; default now }; ``` -the function will be called with an array of elements. each element is an object containing `value`, `startDate`, and `endDate` fields +the function will be called with an array of elements. each element is an object containing `value`, `startDate`, and `endDate` fields: +```javascript +[ + { value: 8, startDate: '2016-07-09T00:00:00.000-0400', endDate: '2016-07-10T00:00:00.000-0400' }, + { value: 1923, startDate: '2016-07-08T00:00:00.000-0400', endDate: '2016-07-09T00:00:00.000-0400' }, + { value: 1802, startDate: '2016-07-07T00:00:00.000-0400', endDate: '2016-07-08T00:00:00.000-0400' }, + ... +] +``` + + ```javascript AppleHealthKit.getDailyStepCountSamples(options: Object, (err: Object, res: Array) => { if(this._handleHealthKitError(err, 'getDailyStepCountSamples')){ diff --git a/examples/StepsDemo/app/components/home/index.js b/examples/StepsDemo/app/components/home/index.js index b9b38ca..dc0a062 100644 --- a/examples/StepsDemo/app/components/home/index.js +++ b/examples/StepsDemo/app/components/home/index.js @@ -108,6 +108,7 @@ class Home extends Component { if(this._handleHKError(err, 'getDailyStepCountSamples')){ return; } + console.log('res: ', res); this.setState({stepHistory: res}); }); } -- 2.26.2