Home > database >  React Native Image Border Radius too big
React Native Image Border Radius too big

Time:10-10

enter image description here

I do have a black box (the background) with a border radius of 10. When I do have a larger image (the brown part is a part of an image) it works fine and the image also does have a border radius of 10. But when I do have smaller images, like this one, I do have such a large radius even when I set it to 10.

CodePudding user response:

border-radius determines the rounding of edges on an element. If it is being inconsistent with regards to size try using a percentage for the value. Such as.

borderRadius: "10%"
  • Related