StackAggregator
Stack aggregator component
(code example)
tip
This component support margin, padding modifiers.
Usageβ
Live Editor
<StackAggregator onItemPress={() => console.log('pressed')} > {_.map(items, (item, index) => { return renderItem(item, index); })} </StackAggregator>
Result
Loading...
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