I'm having a hard time solving a problem I'm having using the react native lib navigation.
When I open a post, for example, by sending the image parameter to it, it returns me the following error message.
My code is as follows:
render() {
const {params} = this.props.navigation.state;
var image = require(images + params.image);
return (
<ScrollView style={styles.container}>
<Image style={styles.cover} source={image}/>
<Text>{params.title} {image}</Text>
</ScrollView>
);
}
Anyone who has gone through this can help me, please?
Thank you.