Expo UI and Router for iOS
Modifiers

resizable

Sets the mode by which SwiftUI resizes an image to fit its space.

resizable(capInsets, resizingMode)

ParameterTypeDescription
capInsets(optional){ bottom: number, leading: number, top: number, trailing: number }Inset values that indicate a portion of the image that SwiftUI doesn’t resize.
resizingMode(optional)'stretch' | 'tile'The mode by which SwiftUI resizes the image.

Sets the mode by which SwiftUI resizes an image to fit its space.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

Sources

The original Expo docs for this page:

On this page