You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RN Text props like allowFontScaling, or minimumFontScale appear to have no effect on the Badge component.
I had the Text Size in my iPhone 11 (real device) set to 2nd dot on the slider (Settings > Display & Brightness > Text Size) and it made the numbers inside the badge be positioned too low (not in the middle).
I found this SO answer pointing to the iPhone setting that influences this, and the other answer on the same question pointed out how RN Text component has props that control this, but even though the Badge component is supposed to allow Text component props to be used, neither allowFontScaling, or minimumFontScale actually does anything, it doesn't prevent the scaling.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RN Text props like
allowFontScaling
, orminimumFontScale
appear to have no effect on theBadge
component.I had the Text Size in my iPhone 11 (real device) set to 2nd dot on the slider (Settings > Display & Brightness > Text Size) and it made the numbers inside the badge be positioned too low (not in the middle).
I found this SO answer pointing to the iPhone setting that influences this, and the other answer on the same question pointed out how RN
Text
component has props that control this, but even though theBadge
component is supposed to allowText
component props to be used, neitherallowFontScaling
, orminimumFontScale
actually does anything, it doesn't prevent the scaling.I had to patch RNP v5.1.4 with the following:
Am I maybe missing something or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions