Jul 25, 2017 · 1 min read
Thanks a lot for this tutorial! I learned a lot and got it to work in my app. For the onPress I had to do some changes. This was my code.
In the cell component:
onPress={() => {
this._handleCellTap(item)
}}
The button handler:
_handleCellTap = (item) => {
const {navigate} = this.props.navigation
navigate(‘Detail’, {…item})
}
I’m still wrapping my head around the ES6 arrow functions syntax. Also not entirely sure what the 3 dots mean in {…item}
