Skip to content

v0.4.0

Latest

Choose a tag to compare

@thedev204 thedev204 released this 22 Oct 07:13

Added

  • Mid-fling scroll prediction — prefetch / decoder warm-up from offset + velocity; playback still settles via viewability.
  • Decoder window unions activeIndex + predictedIndex so the landing page mounts before settle.
  • Muted first-frame warmup for preloaded neighbors (unblocks onReadyForDisplay on Android).
  • drawDistancePages — FlashList draw distance independent of the decoder window (default preloadWindowSize + 1).
  • preloadStrategy (symmetric | directional) — optional directional decoder slots ahead of scroll.
  • Prefetch concurrency cap (prefetchMaxConcurrent, default 2), poster-first warm-up, and abortable video Range fetches.
  • Optional networkAware + optional peer @react-native-community/netinfo for cellular/offline start-quality and prefetch budgets.
  • Exported helpers: predictScrollTarget, getNetworkAwareDefaults, networkKindFromNetInfoType, DEFAULT_PREFETCH_MAX_CONCURRENT.

Changed

  • showPosterUntilReady now defaults to true. Built-in player covers the surface with a poster overlay until onReadyForDisplay / first onProgress (never toggles Video opacity — that caused permanent black frames on Android).
  • Full-page snap: pagingEnabled on iOS; Android uses snapToInterval + decelerationRate="fast". Settle-to-nearest-page runs on momentum end (and drag-end only when there is no fling velocity) so flings are not cancelled.
  • Example app migrated from bare React Native to Expo.