Henrik
Henrik

Reputation: 928

React Native Image Border Radius too big

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.

Upvotes: 1

Views: 158

Answers (1)

Noah Brinton
Noah Brinton

Reputation: 109

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%"

Upvotes: 1

Related Questions