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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add responsiveness to text components to v5 #3431

Open
R4Y-R4Y opened this issue Oct 21, 2022 · 0 comments
Open

Add responsiveness to text components to v5 #3431

R4Y-R4Y opened this issue Oct 21, 2022 · 0 comments

Comments

@R4Y-R4Y
Copy link

R4Y-R4Y commented Oct 21, 2022

Is your feature request related to a problem? Please describe.

Hello
It would be really great if there's support to add responsiveness to React Native Paper's text components.
When I test an app in different screen sizes and resolutions, the font size, width, margin, padding and basically anything that's scalable gets bigger or smaller for every screen. The size is not consistent.

Describe the solution you'd like

One solution might be to add a Theme Property called responsive that could be set to true or false (and by default be true) that makes the font size and other things responsive (could be customizable by adding either other parameters such as responsiveWidth responsiveHeight that works the same as responsive)

Describe alternatives you've considered

I tried to make a custom component that returns a Text component with the fontSize set to a function called responsive(x) that sets the size of the text accordingly

Additional context

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

No branches or pull requests

2 participants