diff --git a/components/chart/day-column.js b/components/chart/day-column.js index a7e0d89d3397c4ac0dde89a2ef50b142ec94b1a6..2f419a08c297c98a7585069a879e6c90134f98fa 100644 --- a/components/chart/day-column.js +++ b/components/chart/day-column.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import { - Text, View + Text, View, TouchableOpacity } from 'react-native' import Svg,{ G, @@ -112,7 +112,7 @@ export default class DayColumn extends Component { // ) const column = ( - <G onPress={() => this.passDateToDayView(dateString)}> + <G> <Rect height={chartHeight} {...styles.column.rect} @@ -122,7 +122,10 @@ export default class DayColumn extends Component { ) return ( - <View> + <TouchableOpacity + onPress={() => this.passDateToDayView(dateString)} + activeOpacity={1} + > <View height={symptomHeight}> <View style={styles.symptomRow}> {typeof symptoms.bleeding === 'number' && @@ -199,7 +202,7 @@ export default class DayColumn extends Component { {cycleDayLabel} {dateLabel} </View> - </View> + </TouchableOpacity> ) } }