-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Text Font Scaling should allow thresholds #15433
Comments
That way, we can set the ExtraLarge* values to stop at 2x, rather than scale to 3.57x - which is WAY too large for most applications. What mechanism should we use to allow customizability here? |
I created a temporary workaround for myself by swizzling the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Note you should also be able to tune these in JS with |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 0.42.3node -v
: 8.2.1npm -v
: 5.3.0yarn --version
0.19.1Target 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.
The text was updated successfully, but these errors were encountered: