-
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 'allowFontScaling' not adjusting font size properly when Emoticons are included in text #23213
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.58 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running |
Latest Expo SDK (32.0.0) includes RN 0.57 and that's the reason why I have mentioned this version in environment report. On my machine I'm using the latest RN and I can confirm that on latest version (0.58.3) problem still occurs. |
'allowFontScaling' not working on nested |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
Description
As you can see on the screenshot below two lines at bottom do not scales properly with
allowFontScaling
property set totrue
. It seems like emoticons are responsible for that behaviour/bug.Removing emoticon from text fixes that issue (second line):
It also seems that this bug do not occur in Expo in-browser preview. Maybe iOS global font scaling messing with thing up?
Also I would like to note, that scaling works properly if
Text
starts with emoji. This my be related to issue #14981.Reproducible Demo
Run on you own device:
https://snack.expo.io/@simek/text-adjustsfontsizetofit-bug
The text was updated successfully, but these errors were encountered: