Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
30304bb1
Commit
30304bb1
authored
6 years ago
by
tina
Browse files
Options
Downloads
Patches
Plain Diff
button 'edit symptoms for today' actually goes to dayview of today
parent
6d37d451
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
home.js
+10
-1
10 additions, 1 deletion
home.js
package-lock.json
+1566
-1561
1566 additions, 1561 deletions
package-lock.json
package.json
+1
-0
1 addition, 0 deletions
package.json
with
1577 additions
and
1562 deletions
home.js
+
10
−
1
View file @
30304bb1
...
...
@@ -4,21 +4,30 @@ import {
Button
,
Text
}
from
'
react-native
'
import
{
LocalDate
}
from
'
js-joda
'
import
styles
from
'
./styles
'
import
getCycleDay
from
'
./get-cycle-day
'
import
{
getOrCreateCycleDay
}
from
'
./db
'
export
default
class
Home
extends
Component
{
constructor
(
props
)
{
super
(
props
)
}
passTodayToDayView
()
{
const
todayDateString
=
LocalDate
.
now
().
toString
()
const
cycleDay
=
getOrCreateCycleDay
(
todayDateString
)
const
navigate
=
this
.
props
.
navigation
.
navigate
navigate
(
'
dayView
'
,
{
cycleDay
})
}
render
()
{
const
navigate
=
this
.
props
.
navigation
.
navigate
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
welcome
}
>
Welcome
!
Today
is
day
{
getCycleDay
()}
of
your
current
cycle
<
/Text
>
<
Button
onPress
=
{()
=>
navigate
(
'
temperatureList
'
)}
onPress
=
{()
=>
this
.
passTodayToDayView
(
)}
title
=
"
Edit symptoms for today
"
>
<
/Button
>
<
Button
...
...
This diff is collapsed.
Click to expand it.
package-lock.json
+
1566
−
1561
View file @
30304bb1
This diff is collapsed.
Click to expand it.
package.json
+
1
−
0
View file @
30304bb1
...
...
@@ -14,6 +14,7 @@
"lint"
:
"eslint app test"
},
"dependencies"
:
{
"
js-joda
"
:
"
^1.8.2
"
,
"
moment
"
:
"
^2.22.1
"
,
"
react
"
:
"
16.3.1
"
,
"
react-native
"
:
"
0.55.4
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment