I am using react native for one of my project.
I am setting state with an image url, and then I wanted it to use this state in Image
, but its not working
Image path: ../../assets/images/image.png
setSplashImage(image);
Then in Image tag:
<Image
source={require(splashImage)}
style={{
height: 100,
width: 100,
}}
/>
But this is not working