Fix layout on chart view
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user