question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

G-SVG doesnt show my Image inside it - react-native

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
msandcommented, Oct 24, 2018

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.

1reaction
msandcommented, Oct 8, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found