Make everything scrollable

This commit is contained in:
Julia Friesel
2018-07-20 11:54:47 +02:00
parent 48aba2bbaf
commit 2a2f91fc55
3 changed files with 11 additions and 9 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
import React, { Component } from 'react'
import {
View,
Text
Text,
ScrollView
} from 'react-native'
import cycleDayModule from '../../lib/get-cycle-day-number'
import DayView from './cycle-day-overview'
@@ -33,7 +34,7 @@ export default class Day extends Component {
render() {
const cycleDayNumber = getCycleDayNumber(this.cycleDay.date)
return (
<View>
<ScrollView>
<View style={ styles.cycleDayDateView }>
<Text style={styles.dateHeader}>
{formatDateForViewHeader(this.cycleDay.date)}
@@ -51,7 +52,7 @@ export default class Day extends Component {
}[this.state.visibleComponent]
}
</View >
</View >
</ScrollView >
)
}
}