Skip to Content
API

Reference

Below is a table of all the props available in RN Smartstack.

API Reference Table

PropTypeDefaultDescription
widgetsWidget[]RequiredArray of widget objects to display in the stack. Each widget requires id and name, with optional color, image, component, and props.
defaultExpandedbooleanfalseWhether the stack should start in expanded state.
expandedbooleanundefinedOptional controlled prop to manually control expansion state.
onExpandChange(isExpanded: boolean) => voidundefinedCallback fired when expand/collapse state changes.
onIndexChange(index: number) => voidundefinedCallback fired when the active widget index changes on swipe.
Last updated on