Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rn-apple-healthkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
rn-apple-healthkit
Commits
f388c49f
Commit
f388c49f
authored
Jul 09, 2016
by
Greg Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
198bdd7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
README.md
README.md
+11
-1
examples/StepsDemo/app/components/home/index.js
examples/StepsDemo/app/components/home/index.js
+1
-0
No files found.
README.md
View file @
f388c49f
...
@@ -308,7 +308,17 @@ let options = {
...
@@ -308,7 +308,17 @@ let options = {
endDate
:
(
new
Date
()).
toISOString
()
// optional; default now
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
```
javascript
AppleHealthKit
.
getDailyStepCountSamples
(
options
:
Object
,
(
err
:
Object
,
res
:
Array
<
Array
<
Object
>
)
=>
{
AppleHealthKit
.
getDailyStepCountSamples
(
options
:
Object
,
(
err
:
Object
,
res
:
Array
<
Array
<
Object
>
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getDailyStepCountSamples
'
)){
if
(
this
.
_handleHealthKitError
(
err
,
'
getDailyStepCountSamples
'
)){
...
...
examples/StepsDemo/app/components/home/index.js
View file @
f388c49f
...
@@ -108,6 +108,7 @@ class Home extends Component {
...
@@ -108,6 +108,7 @@ class Home extends Component {
if
(
this
.
_handleHKError
(
err
,
'
getDailyStepCountSamples
'
)){
if
(
this
.
_handleHKError
(
err
,
'
getDailyStepCountSamples
'
)){
return
;
return
;
}
}
console
.
log
(
'
res:
'
,
res
);
this
.
setState
({
stepHistory
:
res
});
this
.
setState
({
stepHistory
:
res
});
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment