Answer the question
In order to leave comments, you need to log in
Why is there an error in the react-native Image component?
put the image in the assets folder
saved the path to the variable image = '../../assets/wine1.png'
I pass this variable as props to the product component
there I try to display the image
<Image source={ require ( this.props.image )} style={styles.productImg} />
Answer the question
In order to leave comments, you need to log in
Import an image, don't create a variableimport image from '../../assets/wine1.png'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question