Skip to content
Snippets Groups Projects
Commit 67a90341 authored by Julia Friesel's avatar Julia Friesel
Browse files

Add press handler to column

parent 720cb913
No related branches found
No related tags found
No related merge requests found
import React, { Component } from 'react' import React, { Component } from 'react'
import { import {
Text, View Text, View, TouchableOpacity
} from 'react-native' } from 'react-native'
import Icon from 'react-native-vector-icons/Entypo' import Icon from 'react-native-vector-icons/Entypo'
import styles from './styles' import styles from './styles'
...@@ -100,10 +100,15 @@ export default class DayColumn extends Component { ...@@ -100,10 +100,15 @@ export default class DayColumn extends Component {
// : null} */} // : null} */}
return React.createElement( return React.createElement(
View, TouchableOpacity,
{ {
style: styles.column.rect, style: styles.column.rect,
key: index.toString() key: index.toString(),
onPress: () => {
this.passDateToDayView(dateString)
},
activeOpacity: 0.,
}, },
columnElements columnElements
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment