Skip to content

Text Font Scaling should allow thresholds #15433

Closed
@Jpoliachik

Description

@Jpoliachik

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.42.3
  2. node -v: 8.2.1
  3. npm -v: 5.3.0
  4. yarn --version 0.19.1
  • Target Platform: iOS

  • Development Operating System: macOS

  • Build tools: Xcode

Steps to Reproduce

On iOS, set the Accessibility Text as large as possible.
(iOS Settings -> General -> Accessibility -> Larger Text -> Larger Accessibility Sizes -> Drag to Far Right)

(Android accessibility scaling works as expected, this is an iOS-only issue)

React Native scaled text becomes WAY larger than expected, to the point where the view is broken.

Expected Behavior

With the largest accessibility text setting possible, apps are expected to scale the text, but still be useable.
React Native views are effectively useless at this massive level of font scaling.

Font Scaling on <Text> is a boolean, but there should be a way to set thresholds or customize the level of scaling based on the accessibility setting.

Actual Behavior

See the current Instagram app's Push Notification Settings view (which uses React Native).
For a reproducible demo, navigate to the current Live Instagram app with the largest accessibility setting and you'll see this:

This view is essentially broken.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions