Skip to main content

StackAggregator

<StackAggregator
onItemPress={() => console.log('pressed')}
>
{_.map(items, (item, index) => {
return renderItem(item, index);
})}
</StackAggregator>
INFO
This component support margin, padding modifiers.
APIThis is the list of additional props for the component

buttonProps
ButtonProps

Props passed to the 'show less' button

children
JSX.Element | JSX.Element[]

Component Children

collapsed
boolean

The initial state of the stack

containerStyle
ViewStyle

The container style

contentContainerStyle
ViewStyle

The content container style

disablePresses
boolean

A setting that disables pressability on cards

itemBorderRadius
number

The items border radius

onCollapseChanged
(changed: boolean) => void

A callback for collapse state change (value is collapsed state)

onCollapseWillChange
(changed: boolean) => void

A callback for collapse state will change (value is future collapsed state)

onItemPress
(index: number) => void

A callback for item press