I want to convert the local image file path to the uri path so that in place of uri where a website is require i want to put the local image directory. I am showing the code below..
state = {
search: '',
images: [
'../../assets/assets/img/formula.png', //***this is not working
'https://source.unsplash.com/1024x768/?water',
'https://source.unsplash.com/1024x768/?girl',
'https://source.unsplash.com/1024x768/?tree'
]
};
//Image is used here..
<SliderBox images={this.state.images} />
In image array i want the first image must include from my local file image. Please someone tell how to do that so that in image I can include my local image file path