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

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

Sources

The original Expo docs for this page:

On this page