i have a list of text and images, I get the name of the image from Firebase database and then concatenate the extracted name with a the path of the images' folder under my project: that's the code i used
var icon= require ('path/'+item.image+'.png') return ( ... <Image style={{width: 50, height: 50}} source={icon}/> The images are displayed but i have warnings as much as i have images in the list i read somewhere this
REQUIRE('IMAGE!...') NO LONGER SUPPORTED
Support for require('image!…'), which has been deprecated for a long time, is now removed. If you are still loading images that way in your apps, make sure to check the documentation for alternatives.
