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.

Not work ClipPath/Path on Android

See original GitHub issue

1.)

            <Svg width="200" height="150" viewBox="6 0 200 160" >
                <G>
                    <Defs>
                        <ClipPath
                            id="clip-path">
                            <Path d="M179.33,9.5H13.83S6.1,9.38,3.33,6.58A19,19,0,0,1,0,1.83V123.17A17.33,17.33,0,0,0,17.33,140.5h162a17.33,17.33,0,0,0,17.33-17.33V26.83A17.33,17.33,0,0,0,179.33,9.5Z"
                                fill="none" />
                        </ClipPath>
                    </Defs>
                    <G clipPath="url(#clip-path)">
                        <Image
                            width="240"
                            height="150"
                            href={this.props.image}/>
                    </G>
                </G>
            </Svg>
        </View>

2.) Run on ios - All good! screenshot at 13 12-28-04

3.) Run on android - Does not work ys3uqowkt0o

Why ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:11

github_iconTop GitHub Comments

1reaction
dusavecommented, Dec 18, 2017

@logvi thanks for posting, I’ll take a look

1reaction
logvicommented, Dec 18, 2017

@dustinsavery “react-native-svg”: “^6.0.0”, “react-native”: “0.50.3”, android 5.1.1

clipPath prop for Image is not working. This is my code:

<Svg
  height="100"
  width="100"
>
<Defs>
   <ClipPath id="clip">
          <G>
             <Path d="M 50 100 A 50 50 0 0 0 50 0 L 50 50" />
          </G>
   </ClipPath>
</Defs>
<Image
   width="100%"
   height="100%"
   href={URL}
   clipPath="url(#clip)"
/>
</Svg>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Not work ClipPath/Path on Android · Issue #280 - GitHub
Same problem at 6.3.1 version. For iOS everything is fine, but on android ClipPath doesn't working. Is there some solution?
Read more >
Android clipPath not working - Stack Overflow
I am trying to clip paths in my imageview. But nothing is happening. My ImageView public static class CliptImageView extends ImageView ...
Read more >
751417 - clip-path doesn't work on Android with inset(0px)
Issue 751417: clip-path doesn't work on Android with inset(0px) ... Steps to reproduce the problem: 1. Open the "bug.html" in the attachment. 2....
Read more >
Clip Path not working on Android - ionic-v3
The problem is that the clip-path is not working on the Ionic page, even on the Google Chrome and Firefox for Android, but...
Read more >
clip-path - CSS: Cascading Style Sheets - MDN Web Docs
The clip-path CSS property creates a clipping region that sets what part of an element ... after dinner, not later than eleven o'clock....
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