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
0687bc52
Commit
0687bc52
authored
Mar 30, 2017
by
skleest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme more
parent
ea00912f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+8
-1
No files found.
README.md
View file @
0687bc52
...
@@ -916,7 +916,6 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array<Object>) =>
...
@@ -916,7 +916,6 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array<Object>) =>
__
_
__
_
#### **`saveMindfulSession`**
#### **`saveMindfulSession`**
saveMindfulSession
each mindfulness sample represents a period of time with a startDate and an endDate.
each mindfulness sample represents a period of time with a startDate and an endDate.
the options must contain
`startDate`
and
`endDate`
the options must contain
`startDate`
and
`endDate`
...
@@ -926,6 +925,14 @@ let options = {
...
@@ -926,6 +925,14 @@ let options = {
startDate
:
(
new
Date
(
2016
,
10
,
1
)).
toISOString
(),
// required
startDate
:
(
new
Date
(
2016
,
10
,
1
)).
toISOString
(),
// required
endDate
:
(
new
Date
()).
toISOString
(),
// optional; default now
endDate
:
(
new
Date
()).
toISOString
(),
// optional; default now
};
};
AppleHealthKit
.
saveMindfulSession
({
startDate
:
startDate
,
endDate
:
endDate
},
(
err
,
res
)
=>
{
if
(
err
)
return
console
.
log
(
err
)
console
.
log
(
'
Mindful session saved
'
)
});
```
```
...
...
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