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
2a2f91fc
Commit
2a2f91fc
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Make everything scrollable
parent
48aba2bb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/chart/chart.js
+3
-3
3 additions, 3 deletions
components/chart/chart.js
components/cycle-day/index.js
+4
-3
4 additions, 3 deletions
components/cycle-day/index.js
components/home.js
+4
-3
4 additions, 3 deletions
components/home.js
with
11 additions
and
9 deletions
components/chart/chart.js
+
3
−
3
View file @
2a2f91fc
import
React
,
{
Component
}
from
'
react
'
import
React
,
{
Component
}
from
'
react
'
import
{
Text
as
ReactNativeText
,
View
,
FlatList
}
from
'
react-native
'
import
{
Text
as
ReactNativeText
,
View
,
FlatList
,
ScrollView
}
from
'
react-native
'
import
range
from
'
date-range
'
import
range
from
'
date-range
'
import
Svg
,{
import
Svg
,{
G
,
G
,
...
@@ -131,7 +131,7 @@ export default class CycleChart extends Component {
...
@@ -131,7 +131,7 @@ export default class CycleChart extends Component {
render
()
{
render
()
{
return
(
return
(
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'
row
'
}}
>
<
ScrollView
contentContainerStyle
=
{{
flexDirection
:
'
row
'
}}
>
<
View
{...
styles
.
yAxis
}
>
{
yAxis
.
labels
}
<
/View
>
<
View
{...
styles
.
yAxis
}
>
{
yAxis
.
labels
}
<
/View
>
<
FlatList
<
FlatList
horizontal
=
{
true
}
horizontal
=
{
true
}
...
@@ -148,7 +148,7 @@ export default class CycleChart extends Component {
...
@@ -148,7 +148,7 @@ export default class CycleChart extends Component {
keyExtractor
=
{
item
=>
item
.
dateString
}
keyExtractor
=
{
item
=>
item
.
dateString
}
>
>
<
/FlatList
>
<
/FlatList
>
<
/View
>
<
/
Scroll
View
>
)
)
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
components/cycle-day/index.js
+
4
−
3
View file @
2a2f91fc
import
React
,
{
Component
}
from
'
react
'
import
React
,
{
Component
}
from
'
react
'
import
{
import
{
View
,
View
,
Text
Text
,
ScrollView
}
from
'
react-native
'
}
from
'
react-native
'
import
cycleDayModule
from
'
../../lib/get-cycle-day-number
'
import
cycleDayModule
from
'
../../lib/get-cycle-day-number
'
import
DayView
from
'
./cycle-day-overview
'
import
DayView
from
'
./cycle-day-overview
'
...
@@ -33,7 +34,7 @@ export default class Day extends Component {
...
@@ -33,7 +34,7 @@ export default class Day extends Component {
render
()
{
render
()
{
const
cycleDayNumber
=
getCycleDayNumber
(
this
.
cycleDay
.
date
)
const
cycleDayNumber
=
getCycleDayNumber
(
this
.
cycleDay
.
date
)
return
(
return
(
<
View
>
<
Scroll
View
>
<
View
style
=
{
styles
.
cycleDayDateView
}
>
<
View
style
=
{
styles
.
cycleDayDateView
}
>
<
Text
style
=
{
styles
.
dateHeader
}
>
<
Text
style
=
{
styles
.
dateHeader
}
>
{
formatDateForViewHeader
(
this
.
cycleDay
.
date
)}
{
formatDateForViewHeader
(
this
.
cycleDay
.
date
)}
...
@@ -51,7 +52,7 @@ export default class Day extends Component {
...
@@ -51,7 +52,7 @@ export default class Day extends Component {
}[
this
.
state
.
visibleComponent
]
}[
this
.
state
.
visibleComponent
]
}
}
<
/View
>
<
/View
>
<
/View
>
<
/
Scroll
View
>
)
)
}
}
}
}
This diff is collapsed.
Click to expand it.
components/home.js
+
4
−
3
View file @
2a2f91fc
...
@@ -2,7 +2,8 @@ import React, { Component } from 'react'
...
@@ -2,7 +2,8 @@ import React, { Component } from 'react'
import
{
import
{
View
,
View
,
Button
,
Button
,
Text
Text
,
ScrollView
}
from
'
react-native
'
}
from
'
react-native
'
import
{
LocalDate
}
from
'
js-joda
'
import
{
LocalDate
}
from
'
js-joda
'
import
styles
from
'
../styles
'
import
styles
from
'
../styles
'
...
@@ -46,7 +47,7 @@ export default class Home extends Component {
...
@@ -46,7 +47,7 @@ export default class Home extends Component {
render
()
{
render
()
{
const
navigate
=
this
.
props
.
navigation
.
navigate
const
navigate
=
this
.
props
.
navigation
.
navigate
return
(
return
(
<
View
>
<
Scroll
View
>
<
Text
style
=
{
styles
.
welcome
}
>
{
this
.
state
.
welcomeText
}
<
/Text
>
<
Text
style
=
{
styles
.
welcome
}
>
{
this
.
state
.
welcomeText
}
<
/Text
>
<
View
style
=
{
styles
.
homeButtons
}
>
<
View
style
=
{
styles
.
homeButtons
}
>
<
View
style
=
{
styles
.
homeButton
}
>
<
View
style
=
{
styles
.
homeButton
}
>
...
@@ -74,7 +75,7 @@ export default class Home extends Component {
...
@@ -74,7 +75,7 @@ export default class Home extends Component {
<
/Button
>
<
/Button
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/
Scroll
View
>
)
)
}
}
}
}
...
...
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