Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ClipPath to create a custom shape and put an expo icon inside it. #1446

Closed
ErezVictor opened this issue Sep 4, 2020 · 1 comment
Closed
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

Comments

@ErezVictor
Copy link

ErezVictor commented Sep 4, 2020

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.
image

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

@bohdanprog
Copy link
Member

Hello @ErezVictor,
Can you provide a simple example to repro that issue?
Thank you

@bohdanprog bohdanprog added the Close when stale This issue is going to be closed when there is no activity for a while label Jun 14, 2024
@bohdanprog bohdanprog added the Missing repro This issue need minimum repro scenario label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants