Skip to content

DynamicScrollerItem

The component that should wrap all the items in a DynamicScroller to handle size computations.

Props

PropDefaultDescription
item (required)The item rendered in the scroller.
active (required)Is the holding view active in RecycleScroller. Will prevent unnecessary size recomputation.
sizeDependenciesValues that can affect the size of the item. This prop will be watched and if one value changes, the size will be recomputed. Recommended instead of watchData.
watchDatafalseDeeply watch item for changes to re-calculate the size (not recommended, can impact performance).
tag'div'Element used to render the component.
emitResizefalseEmit the resize event each time the size is recomputed (can impact performance).

Events

EventDescription
resizeEmitted each time the size is recomputed, only if emitResize prop is true.

Released under the MIT License.