-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix: Add support for borderRadii on RectButton #2691
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
Conversation
m-bert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks fine, thanks for fixing that! ❤️
I'll leave review of TS part for @tjzel
tjzel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS seems approvable now 🚀
Co-authored-by: Jakub Piasecki <[email protected]>
j-piasecki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
This reverts commit 74c01a3.
## Description Reverts #2691. During testing before release, I've found some cases where the approach from PR doesn't work. At this point it may be better to leave the buttons as they are so we don't break any existing setups, and possibly reuse the logic for pressables.
|
Still reproduced in |
Description
Screen.Recording.2023-12-12.at.11.34.21.mov
This PR adds support for border radius style props like:
borderTopLeftRadius,borderTopRightRadius,borderBottomLeftRadius,borderBottomRightRadiusto RectButton.It implements the border radii by wrapping a RawButton with two Views - the outer one curves the native RawButton and the inner acts like a mask cutting the corners of the button. The radius of the inner view had to be adjusted by subtracting the borderWidth from it - see this tweet.
FIxes #2594