3
I’m having a hard time solving a problem I’m having using the lib navigation of React.
When I open a post, for example, sending it the image parameter, it returns me the following error message.
My code is this:
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>
);
}
Someone who’s been through it can help me, please?
Thanks.
Luiz, thanks a lot. It worked well here.
– Fernando Dias
No problem @Fernandodias
– Luiz Fernando Sousa Camargo