Responsive font sizes for better readability on different screen sizes in React Native #2761
shankarRxo
started this conversation in
Ideas
Replies: 1 comment
-
As this is a styling issue, and each user resolves this issue with different methods. We will not give out of the box support for this. Please check with nativewind directly how it tackles this issue. Moving this to discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Currently, fonts used in gluestack-ui for React Native are not responsive. This leads to text looking either too large on larger screens or too small on smaller screens. It would be great if there was an option to make fonts responsive based on screen dimensions or use relative font sizes that scale according to device screen size and resolution.
Expected Behavior:
Font sizes should adjust automatically based on the screen size and resolution, similar to how rem, em, or vw works in CSS for the web. In React Native, we could achieve this using the react-native-responsive-fontsize package or by manually calculating font size based on screen width/height.
CodeSandbox/Snack link
Any New App
Steps to reproduce
gluestack-ui Version
CLI - 0.7.20
Platform
Other Platform
No response
Additional Information
Environment:
Beta Was this translation helpful? Give feedback.
All reactions