Reference
Below is a table of all the props available in RN Smartstack.
API Reference Table
Prop | Type | Default | Description |
---|---|---|---|
widgets | Widget[] | Required | Array of widget objects to display in the stack. Each widget requires id and name, with optional color, image, component, and props. |
defaultExpanded | boolean | false | Whether the stack should start in expanded state. |
expanded | boolean | undefined | Optional controlled prop to manually control expansion state. |
onExpandChange | (isExpanded: boolean) => void | undefined | Callback fired when expand/collapse state changes. |
onIndexChange | (index: number) => void | undefined | Callback fired when the active widget index changes on swipe. |
Last updated on