Reputation: 1061
<Image
style={{height: 100, width: 100}}
source={{ uri: 'https://api.openpay.mx/barcode/185017437691737?width=1&height=100' }}
/>
I would expect the code above to render an image on screen. It does not. If I go to that link in a browser or curl it from the terminal it renders or downloads as expected. But React Native on iOS does not render it even though it works on Android and Web.
See the example here.
Upvotes: 1
Views: 139
Reputation: 103
Pasting in your code into the example on the react native docs rendered the image correctly for me. This could be a problem with a container or internet connectivity, but without the rest of the code it's difficult to tell.
Upvotes: 1