Skip to main content

StackAggregator

Stack aggregator component
(code example)

tip

This component support margin, padding modifiers.

Usage#

<StackAggregator onItemPress={() => console.log('pressed')}>  {_.map(items, (item, index) => {    return renderItem(item, index);  })}</StackAggregator>

API#

buttonProps#

Props passed to the 'show less' button
ButtonProps

children#

Component Children
JSX.Element | JSX.Element[]

collapsed#

The initial state of the stack
boolean

containerStyle#

The container style
ViewStyle

contentContainerStyle#

The content container style
ViewStyle

disablePresses#

A setting that disables pressability on cards
boolean

itemBorderRadius#

The items border radius
number

onCollapseChanged#

A callback for collapse state change (value is collapsed state)
(changed: boolean) => void

onCollapseWillChange#

A callback for collapse state will change (value is future collapsed state)
(changed: boolean) => void

onItemPress#

A callback for item press
(index: number) => void