Repository navigation
How to handle static images #2420
Replies: 1 comment
|
These errors come from the webpack configuration (no loader for these files). Please check your bundler setup or use a framework like Expo. Closing. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions