Expo UI and Router for iOS
Modifiers

defaultScrollAnchor

Sets the default anchor point for a scroll view's content.

defaultScrollAnchor(anchor)

iOS 17+
ParameterTypeDescription
anchorUnitPointValue | nullThe anchor point for initial scroll position and content size changes, or null to reset.

Sets the default anchor point for a scroll view's content.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

Sources

The original Expo docs for this page:

On this page