Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Can't add local image to react native app

$
0
0

I'm new to react & I'm trying to add a local image to my react app. This is what i've currently, <Image source={require("images/pic.jpeg")} />

but cant figure out why am i getting this error.

ERROR 00:24 Unable to resolve "images/pic.jpeg" from "App.js"

I've installed the Image component also, and have made a separate images folder. I'm using iOS simulator.

If someone could help me regarding this, it would be great!Thanks in advance!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>