Malaa-tech / expo-squircle-view

A native implementation for figma corner smoothing (Squircle Shape) for react native expo apps ⏹️
MIT License
44 stars 3 forks source link

Allow setting the radius for individual corners #7

Open rc1 opened 6 days ago

rc1 commented 6 days ago

This is a great library - thanks. It allows clipping unlike the others I tried, and doesn't add significantly to the bundle size.

It would be great to set rounding properties for all corners.

(I quickly started an implementation for a prototype use case here)

WadhahEssam commented 5 days ago

Hello @rc1 thanks for the kind words, honestly clipping now is not implemented in the proper way (it clips the original view radius not the squircle one) if you pixel peep you will get what I mean, but its better now than not having it.

about setting corners, thanks for the help, branch seems great, feel free to open a PR once its done, would be very useful 🙏