Skip to content

Percentage units (%) support on fontSize style property 🚀 #578

@gomes042

Description

@gomes042

Introduction

One of the challenges of designing for mobile devices is ensuring that text is legible and visually consistent across different screen sizes and resolutions. One way to improve the flexibility and responsiveness of our designs is by allowing for the use of percentage units on the fontSize style property in React Native.

Allowing percentage units on the fontSize property would make it easier to create designs that look and feel consistent across different screen sizes and resolutions. It would also allow for greater dynamic and adaptive UI elements. This feature will also be align with some properties like width and height that already support percentage units.

Code example

<Text allowFontScaling={false} style={{fontSize: '50%'}}>
  Some Text
</Text>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions