0
I have a Flatlist where each card directs me to a new screen:
render() {
return (
<TouchableWithoutFeedback onPress={
() => this.props.navigation.navigate('Post', {
"title": this.props.item.title,
"image": this.props.item.image,
"description": this.state.description})
}>
On my Post screen I call my parameter:
{this.props.navigation.state.params.title}
Which returns me the following error:
TypeError: TypeError: TypeError:
undefined is not an object (evaluating 'this.props.navigation.state.params.title')
It was already exported using withNavigator, but in my routes, in stacknavigator, the post screen was out, if you know what I mean, but gave crt.
– Ruan Duarte