Repository navigation
Releases
Releases · thedev204/react-native-flash-reels
v0.4.0
Added
- Mid-fling scroll prediction — prefetch / decoder warm-up from offset + velocity; playback still settles via viewability.
- Decoder window unions
activeIndex+predictedIndexso the landing page mounts before settle. - Muted first-frame warmup for preloaded neighbors (unblocks
onReadyForDisplayon Android). drawDistancePages— FlashList draw distance independent of the decoder window (defaultpreloadWindowSize + 1).preloadStrategy(symmetric|directional) — optional directional decoder slots ahead of scroll.- Prefetch concurrency cap (
prefetchMaxConcurrent, default2), poster-first warm-up, and abortable video Range fetches. - Optional
networkAware+ optional peer@react-native-community/netinfofor cellular/offline start-quality and prefetch budgets. - Exported helpers:
predictScrollTarget,getNetworkAwareDefaults,networkKindFromNetInfoType,DEFAULT_PREFETCH_MAX_CONCURRENT.
Changed
showPosterUntilReadynow defaults totrue. Built-in player covers the surface with a poster overlay untilonReadyForDisplay/ firstonProgress(never toggles Videoopacity— that caused permanent black frames on Android).- Full-page snap:
pagingEnabledon iOS; Android usessnapToInterval+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.
v0.1.0
Added
- Initial release of react-native-flash-reels.
FlashReelsvertical snap feed built on FlashList v2 (New Architecture).- Auto play/pause from viewability, with single-tap pause/play override.
- Double-tap like with heart animation (
onLike/onDoubleTap). - Global mute — controlled (
muted/onMuteChange) or uncontrolled (defaultMuted). MuteButtonanduseFlashReelsfor overlay mute state.- Optional Instagram-style progress bar (
showProgressBar+ReelData.duration). - Optional pagination (
onEndReached) and pull-to-refresh (onRefresh). - Optional buffering loader (
showBufferingLoader/renderBufferingLoader). - Custom overlay and video engine via
renderOverlay/renderVideo. - Preload window (
preloadWindowSize) to limit concurrent video decoders. - Imperative ref API:
scrollToIndex,pause,play. - Example app with custom overlay and comments bottom sheet.
- Documentation site (Docusaurus) with API reference and guides.