Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage units (%) support on borderRadius style property 馃殌 #577

Open
lgxm3z opened this issue Jan 16, 2023 · 4 comments
Open

Percentage units (%) support on borderRadius style property 馃殌 #577

lgxm3z opened this issue Jan 16, 2023 · 4 comments

Comments

@lgxm3z
Copy link

lgxm3z commented Jan 16, 2023

Introduction

As developers, we are constantly looking for ways to improve the user experience and make our designs as dynamic and adaptable as possible. One way to achieve this is by allowing for the use of percentage units on the borderRadius style property in React Native.

Allowing percentage units on the borderRadius property would greatly improve the flexibility and responsiveness of our designs. It would allow us to create more dynamic and adaptive UI elements, and make it easier to create designs that look and feel consistent across different screen sizes and resolutions. Some properties like width and height already support the use of percentage units.

Code example

<View style={{width: 300, height: 300, borderRadius: '50%'}} />
@lgxm3z lgxm3z changed the title Percentage units support on borderRadius style property 馃殌 Percentage units (%) support on borderRadius style property 馃殌 Jan 28, 2023
@andresribeiro
Copy link

+1

2 similar comments
@ArthurLobopro
Copy link

+1

@adnandothussain
Copy link

+1

@paperrin
Copy link

+1

Annoyed of developers using random large values as border radius.
Already saw things like this several times :

const styles = StyleSheet.create({
  circle: {
    width: '60%',
    aspectRatio: 1,
    borderRadius: 999999, // lazy
    backgroundColor: 'red',
  },
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants