List.AccordionGroup

Props

onAccordionPress
Type: (expandedId: string | number) => void

Function to execute on selection change.

expandedId
Type: string | number

Id of the currently expanded list accordion

children (required)
Type: React.ReactNode

React elements containing list accordions

Methods

These methods can be accessed on the ref of the component, e.g. list.AccordionGroupRef.onAccordionPress(...args).

onAccordionPress
Params: expandedId: string | number