Using ClipPath to create a custom shape and put an expo icon inside it. #1446
Labels
Close when stale
This issue is going to be closed when there is no activity for a while
Missing repro
This issue need minimum repro scenario
Hi,
I'm trying to make a shape of a triangle with rounded corners and place in it a 'plus' sign with a yellow background.
I'm using a clip path to create the desired shape but I was wondering if I can show inside an expo icon like for example
with a yellow background.
The clipPath:
<Svg {...rest} width={width} height={height}> <Defs> <ClipPath id='clip'> <Path d='M 6.7 1.14 l 2.8 4.7 s 1.3 3 -1.82 3.22 l -5.4 0 s -3.28 -.14 -1.74 -3.26 l 2.76 -4.7 s 1.7 -2.3 3.4 0 z' scale={5} /> </ClipPath> </Defs> <Icon>??? </Svg>
I've tried a lot of ways but did not manage to do it.
Any ideas?
Thanks,
Erez
The text was updated successfully, but these errors were encountered: