Skip to content

jkoutavas/react-native-web-static-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

react-native-web-static-image

This is an attempt to display a static image from react-native-web. This repo was created to demonstrate the problem I'm having in succeeding.

The app was created by following the steps at this article, then I yarn add customize-cra react-app-rewired using info from this article so I may apply the url-loader webpack rule mentioned in react-native-web issue #1497 to get a static image to load using <image source={require(...)}>

It's at this line of code where I do the image display.

It's here where I'm adding a url-loader webpack rule, as referred to at react-native-web issue #1497 and similar solutions I've seen online.

Everything builds fine for web (yarn run web), but the image does not appear. The image appears fine on iOS and Android, as you would expect.

About

An attempt to display a static image from react-native-web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published