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

Transform with mask moves Path way out of place #160

Open
webfussel opened this issue Mar 31, 2023 · 0 comments
Open

Transform with mask moves Path way out of place #160

webfussel opened this issue Mar 31, 2023 · 0 comments

Comments

@webfussel
Copy link

Describe the bug
When using mask and transform to stack icons onto each other, the Path of the FontAwesomeIcon gets moved pretty out of place, which can sometimes prevent clicking buttons.

Reproducible test case

  • Create some Layout
  • Create FontawesomeIcon with mask and transform
<FontAwesomeIcon
      icon={faOne}
      color={'#c0c0c0'}
      mask={faTrophy}
      transform={{size: 7, y: -3}}
      size={sizes[size]}
 />

Expected behavior
Icons stack onto each other without moving and incresing Path size.

Desktop (please complete the following information):

  • Android 11
  • React Native 0.71.4
  • React Native Font Awesome 0.3.0

Additional context
The transform seems to affect the base icon and not the mask, which was what I was looking for, as we can not transform the mask seperately. I tried to create some Trophies (First, Second, Third place) with this approach and make it more accessible with the numbers. With the masking and transform the path gets so much out of the way, it prevents pressing Touchables under it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant