Home > Blockchain >  To show images from given data object
To show images from given data object

Time:11-06

I am new to react native i am building a book app UI and i have a doubt

Here is my code

const data = [
{
    id: "1",
    title: "Name",
    image: "https:/images", // i want to import images from my folder instead of fetching data from web
    author: "Author Name",
},

  <Image
    style={{ width:200, height:200, top: -20, left: 65, resizeMode:"contain"}}
    source={{ uri: item.image }} //            
  • Related