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#
buttonPropsProps passed to the 'show less' button
ButtonProps
#
childrenComponent Children
JSX.Element | JSX.Element[]
#
collapsedThe initial state of the stack
boolean
#
containerStyleThe container style
ViewStyle
#
contentContainerStyleThe content container style
ViewStyle
#
disablePressesA setting that disables pressability on cards
boolean
#
itemBorderRadiusThe items border radius
number
#
onCollapseChangedA callback for collapse state change (value is collapsed state)
(changed: boolean) => void
#
onCollapseWillChangeA callback for collapse state will change (value is future collapsed state)
(changed: boolean) => void
#
onItemPressA callback for item press
(index: number) => void