Expo UI and Router for iOSExpo SDK 57 and later, iOS only
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

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

Sources

The original Expo docs for this page:

On this page