Expo UI and Router for iOS
Modifiers

scrollTargetBehavior

Sets the scroll snapping behavior for scrollable views. Use with scrollTargetLayout on the content container.

scrollTargetBehavior(behavior)

iOS 17+
ParameterTypeDescription
behavior'paging' | 'viewAligned''paging' for container-aligned snapping, 'viewAligned' for view-aligned snapping.

Sets the scroll snapping behavior for scrollable views. Use with scrollTargetLayout on the content container.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

Sources

The original Expo docs for this page:

On this page