stripe-react-native
stripe-react-native copied to clipboard
Border radius breaks primary button in payment sheet
Describe the bug When customizing the payment sheet with the "appearance" property, and you add a large border radius for the "primary button", you get a really extreme border radius. If you set a really large value the whole button disappears.
It seems to me that it happens when you set a border radius larger than half the buttons height.
This is only happening on iOS, not on Android
To Reproduce Steps to reproduce the behavior:
- Call
initPaymentSheet - Provide the
appearanceproperty and setprimaryButton.shapes.borderRadiusto something like "99" - See the button in the payment sheet looking broken
Expected behavior I expect the border radius to work as all other places in React Native. Giving a huge border radius (like 99999) should apply a radius that rounds of the corners to a circle, not anything beyond that.
Screenshots
Smartphone (please complete the following information):
- Device: iPhone 15
- OS: iOS
- Version: 0.38.6