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
37a87f9b
Commit
37a87f9b
authored
Jun 27, 2016
by
Greg Wilson
Committed by
GitHub
Jun 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated readme to reflect changes in method names in RCTAppleHealthKit
parent
326e9df2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
37a87f9b
...
@@ -12,7 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
...
@@ -12,7 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
*
[
Methods
](
#methods
)
*
[
Methods
](
#methods
)
*
[
isAvailable
](
#isavailable
)
*
[
isAvailable
](
#isavailable
)
*
[
initHealthKit
](
#inithealthkit
)
*
[
initHealthKit
](
#inithealthkit
)
*
[
get
CurrentWeight
](
#getcurren
tweight
)
*
[
get
LatestWeight
](
#getlates
tweight
)
*
[
saveWeight
](
#saveweight
)
*
[
saveWeight
](
#saveweight
)
## Getting started
## Getting started
...
@@ -155,12 +155,12 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
...
@@ -155,12 +155,12 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
__
_
__
_
#### **`get
Curren
tWeight`**
#### **`get
Lates
tWeight`**
get the most recent weight value
get the most recent weight value
```
javascript
```
javascript
AppleHealthKit
.
get
Curren
tWeight
(
null
,
(
err
:
string
,
weight
:
number
)
=>
{
AppleHealthKit
.
get
Lates
tWeight
(
null
,
(
err
:
string
,
weight
:
number
)
=>
{
if
(
err
){
if
(
err
){
console
.
log
(
"
error getting
curren
t weight:
"
,
err
);
console
.
log
(
"
error getting
lates
t weight:
"
,
err
);
return
;
return
;
}
}
weight
=
_
.
round
(
weight
,
1
);
weight
=
_
.
round
(
weight
,
1
);
...
...
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