I'm trying to load a JPG image from my local folder in my react-native application.
The image is stored inside assets folder which I''m trying to render inside Image tag
Here's my JSON object
{ title: 'Device 2', image: '../assets/imgs/device_default.jpg', cta: 'View device', mac: '1234-xxxx-xxxx-5678' }, Here's my code for the same
<Block flex style={imgContainer}> <Image source={{uri: item.image}} style={imageStyles} /> </Block> here item contains the props value. I can iterate other values like title and mac
but not able to render the image.
Can anyone help me on this??