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

scrollTargetLayout

Configures a layout container as a scroll target layout for view-aligned snapping. Apply to VStack or HStack inside a ScrollView.

scrollTargetLayout()

iOS 17+

Configures a layout container as a scroll target layout for view-aligned snapping. Apply to VStack or HStack inside a ScrollView.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

scrollTargetLayout is made for these components. On other components it has no effect.

Sources

The original Expo docs for this page:

On this page