Answers for "react native add image to local storage"

2

how to dynamically show image from local storage in react native

// our data
// we need to require all images, 
// so that React Native knows about them statically
const items = [
    {
        id: '001',
        image: require('../images/001.jpeg'),
    },
    {
        id: '002',
        image: require('../images/002.jpeg'),
    },
];

// render
items.map( (item) => 
    <Image key={item.id} source={item.image} />
)
Posted by: Guest on October-31-2020
2

react native image source local file

<Image source={require('./myimage.png')} />
Posted by: Guest on June-24-2021

Code answers related to "react native add image to local storage"

Code answers related to "Javascript"

Browse Popular Code Answers by Language