How to handle static images #2420
Unanswered
JeremyBradshaw7
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to migrate an existing RN app to the web.
I have some static image assets that I render with something like:
<Image source={require('assets/cpd_list_view.png')} />
But getting errors like this:
Module not found: Error: Can't resolve 'assets/cpd_list_view.png' in '/Users/jeremybradshaw/ccfw/src/screens/FADemo'
Prefixed with these errors which may be related:
I've added my assets folder to the webpack config:
Beta Was this translation helpful? Give feedback.
All reactions