Skip to content
Advertisement

React Native Border Radius with background color

In React Native, borderRadius is working but the background color given to the button stays a square. What is going on here?

JS

JavaScript

Style

JavaScript

enter image description here

Advertisement

Answer

Try moving the button styling to the TouchableHighlight itself:

Styles:

JavaScript

Button (same):

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement