Expo UI and Router for iOS
Modifiers

presentationDetents

Sets the available heights for a sheet presentation.

presentationDetents(detents, options)

iOS 16+
ParameterTypeDescription
detentsPresentationDetent[]Array of detents the sheet can snap to.
options(optional){ onSelectionChange: (detent: PresentationDetent) => void, selection: PresentationDetent }Optional settings for tracking the selected detent.

Sets the available heights for a sheet presentation.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

Sources

The original Expo docs for this page:

On this page