Skip to content

react-native-gesture-image-viewer@2.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 13 Aug 10:36
· 7 commits to main since this release
fdc5cd2

Patch Changes

  • 91320d6: fix(useGestureViewerController): Prevent tearing and optimize rendering

    • Refactors useGestureViewerController to use useSyncExternalStore.
    • This change resolves a potential tearing bug that can occur in concurrent mode by ensuring the hook's state is always synchronized with the external store.
    • Optimized the update logic to prevent unnecessary re-renders when currentIndex or totalCount remain unchanged, improving performance.