Make props flat and try recyclerView

This commit is contained in:
Julia Friesel
2018-08-10 11:32:50 +02:00
parent 8b7beb517a
commit 93a7ba853f
4 changed files with 73 additions and 31 deletions
+9 -1
View File
@@ -17,7 +17,15 @@ import { horizontalGrid } from './y-axis'
const getCycleDayNumber = cycleModule().getCycleDayNumber
export default class DayColumn extends Component {
makeDayColumn({ dateString, cycleDay, y }, index) {
makeDayColumn(data, index) {
const {
dateString,
y,
temperature,
temperatureExclude,
bleeding,
mucus
} = data
const cycleDayNumber = getCycleDayNumber(dateString)
const label = styles.column.label
const dateLabel = dateString.split('-').slice(1).join('-')