Fix layout on chart view
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react'
|
||||
import { View, FlatList } from 'react-native'
|
||||
import { View, FlatList, ScrollView } from 'react-native'
|
||||
import range from 'date-range'
|
||||
import { LocalDate } from 'js-joda'
|
||||
import { yAxis, normalizeToScale, horizontalGrid } from './y-axis'
|
||||
@@ -41,6 +41,7 @@ export default class CycleChart extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<ScrollView>
|
||||
<View style={{ flexDirection: 'row', marginTop: 50 }}>
|
||||
{yAxisView}
|
||||
{horizontalGrid}
|
||||
@@ -56,6 +57,7 @@ export default class CycleChart extends Component {
|
||||
>
|
||||
</FlatList>}
|
||||
</View>
|
||||
</ScrollView>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user