Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

minimumScaleFactor

Sets the minimum amount that text in this view scales down to fit in the available space.

minimumScaleFactor(factor)

ParameterTypeDescription
factornumberA fraction between 0 and 1 (including 0 and 1) that specifies the amount of text to draw. For example, a value of 0.5 draws the text in a font size as small as half the actual font if needed.

Sets the minimum amount that text in this view scales down to fit in the available space.

Use this modifier if the text you place in a view doesn't fit and it's okay if the text shrinks to accommodate. For example, a label with a minimum scale factor of 0.5 draws its text in a font size as small as half of the actual font if needed.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

You can add minimumScaleFactor to any view. It changes what you see on 34 of the 39 components.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes only text, and Spacer shows no text.
DividerIt changes only text, and Divider shows no text.
SliderIt changes only text, and Slider shows no text.
ImageIt changes only text, and Image shows no text.
AccessoryWidgetBackgroundIt changes only text, and AccessoryWidgetBackground shows no text.

Sources

The original Expo docs for this page:

On this page