callstack / callstack/react-native-paper

Add responsiveness to text components to v5

Open
#3,431 0 comments 2 reactions 0 assignees View on GitHub
feature request Typography
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

**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**

Contributor guide

Open the contributing guide

Research direction

Start by locating the text components and theme configuration in React Native Paper, then review how text sizing and spacing are currently specified. Define the responsive behavior and customization surface before implementation, and verify that text components scale consistently across different screen sizes and resolutions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
design, frontend, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.