G-SVG doesnt show my Image inside it - react-native
See original GitHub issueI’m using react-native-svg
. I want to show my image inside it but G
doesnt show it:
<G x={endCoord2.x-widthHeight} y={endCoord2.y-widthHeight}>
<Image resizeMode='stretch' style={{width:50,height:50,margin:4}} source={{uri: 'https://javacupcake.com/wp-content/uploads/2017/07/IceCreamConeCupcakes_0307.jpg'}} />
</G>
where is my wrong?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
How to show SVG file on React Native? - Stack Overflow
How to show SVG file on React Native? · first, you should take installation, · then, you should add the following code in...
Read more >G-SVG doesnt show my Image inside it - react-native #800
I'm using react-native-svg. I want to show my image inside it but G doesnt show it:
Read more >How to import SVG files in React Native using react-native-svg
Let's look at how you can use the react-native-svg library to render SVGs in your app. Open up the project in your favorite...
Read more >Working with SVGs in React Native - OpenReplay Blog
Working with SVGs in React Native ... Scalable Vector Graphic (SVG) is an image format that uses vector graphics to display the image...
Read more >How to use SVG in React Native | Medium
Unfortunately, rendering SVGs in native is not as simple as it is in HTML/Web, where you can use SVG as an image or...
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
Perhaps you we’re using clipping? The implementation has changed to be more spec conformant (and there was a regression as well until 8.0.6, you might need to move your clipRule attribute to the ClipPath elements from the elements where you have the clipPath attribute.
Are you using Image from react native? That doesn’t work inside svg components. You need to import from react-native-svg like here: https://github.com/react-native-community/react-native-svg/blob/master/README.md#image