I'm trying to display the picture of a shop in a single-shop page after clicking on said shop on the shop-list page.
Once I clicked it takes the data (from phpmyadmin) of that shop only and display the details. The name, address, phone number, etc all work but not the picture.
I created a column image
where I store the url that leads to the picture located in my assets folder of the react folder.
But I tried just with url to see if the Image balise would work... AND IT WORKED :
<View><Image style={{resizeMode : 'cover'}} source= {require('../../../assets/picture1.jepg')} /></View>
I then tried with an object called pharmaimages
(it's basically just the url itself that I stored in my database with the '' included) but it says invalid. I also tried with the propriety uri but it's even less clear.
<View><Image style={{resizeMode : 'cover'}} source= {require(pharmaimages)} /></View>
in my mind it makes perfect sense but it just doesn't work