Skip to content
GuidesToolkitAPI

FloatingPanelProps

FloatingPanelProps = ViewProps & object

Defined in: packages/expo-arcgis-toolkit/src/FloatingPanel.tsx:31

optional attributionBarHeight?: number

The height of the attribution bar at the bottom of the view, which the panel stays above outside portrait.

the attribution bar of geoView, or 0 without one

optional backgroundColor?: ColorValue

The panel’s background color.

the system background color

optional children?: ReactNode

The panel’s content. React lays it out in the panel’s size: give it flex: 1 to fill the panel.

optional geoView?: RefObject<GeoViewHandle | null>

The view the panel floats over, whose attribution bar it stays above: a <MapView>, <SceneView> or <LocalSceneView> ref.

the view the panel is placed in

optional horizontalAlignment?: "leading" | "center" | "trailing"

Where the panel sits across the view, outside portrait: in portrait it spans the view’s width.

'trailing'

optional isPresented?: boolean

Whether the panel shows.

true

optional maxWidth?: number

The panel’s maximum width outside portrait.

400

optional onSelectedDetentChange?: (detent) => void

Called with the detent the user dragged the panel to.

FloatingPanelDetent

void

optional selectedDetent?: FloatingPanelDetent

The height the panel rests at. The user can drag the panel to 'summary', 'half' or 'full', which onSelectedDetentChange reports; to keep the two in step, set it from there.

'half', the Toolkit's