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
+3 -3
View File
@@ -1,5 +1,5 @@
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 Svg,{
G,
@@ -131,7 +131,7 @@ export default class CycleChart extends Component {
render() {
return (
<View style={{flex: 1, flexDirection: 'row'}}>
<ScrollView contentContainerStyle={{flexDirection: 'row'}}>
<View {...styles.yAxis}>{yAxis.labels}</View>
<FlatList
horizontal={true}
@@ -148,7 +148,7 @@ export default class CycleChart extends Component {
keyExtractor={item => item.dateString}
>
</FlatList>
</View>
</ScrollView>
)
}
}