Fix layout on chart view

This commit is contained in:
Julia Friesel
2018-08-22 13:05:28 +02:00
parent 6876876d40
commit db4d82e945
+3 -1
View File
@@ -1,5 +1,5 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import { View, FlatList } from 'react-native' import { View, FlatList, ScrollView } from 'react-native'
import range from 'date-range' import range from 'date-range'
import { LocalDate } from 'js-joda' import { LocalDate } from 'js-joda'
import { yAxis, normalizeToScale, horizontalGrid } from './y-axis' import { yAxis, normalizeToScale, horizontalGrid } from './y-axis'
@@ -41,6 +41,7 @@ export default class CycleChart extends Component {
render() { render() {
return ( return (
<ScrollView>
<View style={{ flexDirection: 'row', marginTop: 50 }}> <View style={{ flexDirection: 'row', marginTop: 50 }}>
{yAxisView} {yAxisView}
{horizontalGrid} {horizontalGrid}
@@ -56,6 +57,7 @@ export default class CycleChart extends Component {
> >
</FlatList>} </FlatList>}
</View> </View>
</ScrollView>
) )
} }
} }