-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
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
Labels
No labels

