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
c0fb9093
Commit
c0fb9093
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add buttons to home screen
parent
52b04a51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
App.js
+16
-4
16 additions, 4 deletions
App.js
styles.js
+4
-7
4 additions, 7 deletions
styles.js
with
20 additions
and
11 deletions
App.js
+
16
−
4
View file @
c0fb9093
import
React
,
{
Component
}
from
'
react
'
import
React
,
{
Component
}
from
'
react
'
import
{
import
{
View
,
View
,
Button
Button
,
Text
}
from
'
react-native
'
}
from
'
react-native
'
import
*
as
styles
from
'
./styles
'
import
styles
from
'
./styles
'
export
default
class
home
extends
Component
{
export
default
class
home
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -13,10 +14,21 @@ export default class home extends Component {
...
@@ -13,10 +14,21 @@ export default class home extends Component {
render
()
{
render
()
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
welcome
}
>
Welcome
!
Today
is
day
6
of
your
current
cycle
<
/Text
>
<
Button
<
Button
onPress
=
{()
=>
{}}
onPress
=
{
goToSymptomEdit
}
title
=
"
Home
"
><
/Button
>
title
=
"
Edit symptoms for today
"
>
<
/Button
>
<
Button
onPress
=
{
goToCalendar
}
title
=
"
Go to calendar
"
>
<
/Button
>
<
/View
>
<
/View
>
)
)
}
}
}
}
function
goToSymptomEdit
()
{
}
function
goToCalendar
()
{}
This diff is collapsed.
Click to expand it.
styles.js
+
4
−
7
View file @
c0fb9093
import
{
StyleSheet
}
from
'
react-native
'
import
{
StyleSheet
}
from
'
react-native
'
const
ourStyle
=
StyleSheet
.
create
({
export
default
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
justifyContent
:
'
center
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
alignItems
:
'
center
'
},
},
welcome
:
{
welcome
:
{
fontSize
:
20
,
fontSize
:
20
,
textAlign
:
'
center
'
,
margin
:
30
,
margin
:
10
,
textAlign
:
'
center
'
}
}
})
})
\ No newline at end of file
export
{
ourStyle
}
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