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

fixedSize

Controls fixed size behavior.

fixedSize(params)

ParameterTypeDescription
params(optional){ horizontal: boolean, vertical: boolean }Whether the view should use its ideal width or height.

Controls fixed size behavior.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

Sources

The original Expo docs for this page:

On this page