Skip to content

Transform with mask moves Path way out of place #160

@webfussel

Description

@webfussel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions