Skip to content

v0.1.0

Choose a tag to compare

@theRizwan theRizwan released this 19 Aug 12:18
· 2 commits to main since this release

First release.

A virtualized list for React Native and react-native-web that keeps its scroll position when item heights are only known after they render.

  • Item offsets come from a Fenwick tree rather than a materialised position array, so they are non decreasing by construction and the visible range search cannot be misled by a partially corrected table
  • Position is stored as an anchor, meaning an item plus how far its top sits above the viewport, rather than as a scroll offset
  • scrollToIndex lands on the requested row even when nothing has been measured
  • 56 automated tests, no device required: 43 unit tests including differential fuzzing against a naive implementation and a run at one million items, plus 13 render tests driving the real component through react-test-renderer

Tested on a physical iOS device.