Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

React Native: borderTopLeft(Right)Radius behave differently on iOS and Android

I would like to have a semi-circle as you can see on the right side of the screenshot ( Android ). However, the result looks differently on iOS. Looks like borderTopStartRadius and borderTopEndRadius work differently depending on the platform. The style class is quite simlple and is applied on View component:

logo_semiCircle: {
width: 150,
height: 75,
backgroundColor: "#fff",
borderTopStartRadius: 75,
borderTopEndRadius: 75, 
}

enter image description here

What is the possible work-around for this problem?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try This Style

footer_logo_semiCircle: {
width: 150,
height: 75,
backgroundColor: "#fff",
borderTopStartRadius: 75,
borderTopEndRadius: 75, 
overflow: 'hidden',
}

I got a reference from here link

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading