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

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

Sources

The original Expo docs for this page:

On this page