reactxp-starter
reactxp-starter copied to clipboard
File-loader loads pictures on the Web in a compatible way with react native
Also serving index.html from dist makes it easier to serve anything relative to the dist directory (such as images)
With this PR, loading local pictures with require will work both on native and web. Eg:
<RX.Image
source={require('../static/losange.png')}
style={{width: 50, height: 50}}
/>
After using the CLI it's the first thing I did to make it work but maybe I missed something obvious :)