software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
5.83k stars 952 forks source link

Allows to apply different border radius to RectButton component #2792

Closed camilossantos2809 closed 1 month ago

camilossantos2809 commented 1 month ago

Description

This PR is intended to allow the use of different border radius values on the RectButton component. As mentioned in comments on #477 , it doesn’t work on Android. I tried to follow the same implementation pattern from borderRadius, but using setCornerRadii method when informed at least one prop from specific corner. Also, it is possible to merge the values from borderRadius or from specific corner.

Test plan

I added a component (RectButtonBorders) on example app with some variations of values to test the changes.