Here is my listingScreen
Here’s my listingEdithScreen
when
console.log(listing.image);
it keeps telling me that the image is undefined
console.log(listing.image);
<Image style={styles.imagen} source={{ uri: listing.images[0].url }} />
I have it like this and it’s working.
Remember in the React Native Image component you have to pass an objet with the uri property to the source. And in this case you want to pass the url of the first image (since one listing can have many).
Thanks alot it worked,…I thought of this but I don’t add the uri:
I just write listing.images[0]•url