Image url
See original GitHub issueCurrently I want to load image from url not from local, and this is the code I use and it is not working, please help me to resolve this
<Svg
width= {Layout.window.width}
height={Layout.window.height/2}
>
<Circle
cx={data.xAxis}
cy={data.yAxis}
r="10"
fill={data.departmentColorCode}
/>
<Image
width="100%"
height="100%"
preserveAspectRatio="xMidYMid slice"
opacity={0.5}
href={{uri:data.floorImage}}/>
</Svg>
</View>
Issue Analytics
- State:
- Created 6 years ago
- Comments:17
Top Results From Across the Web
Find the URL of a page or image - Computer - Google Support
Get an image URL · On your computer, go to images.google.com. · Search for the image. · In Images results, click the image....
Read more >ImgBB — Upload Image — Free Image Hosting
Free image hosting and sharing service, upload pictures, photo host. Offers integration solutions for uploading images to forums.
Read more >4 Ways to Get the URL for Pictures - wikiHow
1. Open the Google Image search page. Go to https://images.google.com/ in your computer's web browser. This will open the Google search page for...
Read more >HTML Images - W3Schools
The HTML <img> tag is used to embed an image in a web page. Images are not technically ... The required src attribute...
Read more >20+ Free Url & Link Images - Pixabay
Related Images: link domain web internet website youtube domain names hyperlink sea. Hundreds of url images to choose from. Free high resolution picture ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This seems to work for me
href={{ uri: '<remote-image-url', __packager_asset:true }}
. Good luck! @hle50 @ @fendorio @magicismighthi @msand does this only work for apps via expo and not when importing
Image
fromreact-native-svg
? Just tried this in a plain react native project i get the error:Do we have to convert the image to a data uri before passing it into thehref
?Edit: Using react-native-fetch-blob and using it as a temp file uri works.