diff --git a/components/chart/day-column.js b/components/chart/day-column.js index cdcb015c4af335d5a124502800cc1ddf2403395d..008cc3111656380223c95ce98891dc7c7a333338 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 Icon from 'react-native-vector-icons/Entypo' import styles from './styles' @@ -100,10 +100,15 @@ export default class DayColumn extends Component { // : null} */} return React.createElement( - View, + TouchableOpacity, { style: styles.column.rect, - key: index.toString() + key: index.toString(), + onPress: () => { + this.passDateToDayView(dateString) + }, + activeOpacity: 0., + }, columnElements )