Skip to content

react-native-gesture-image-viewer@1.6.5

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 13 Aug 10:35
3ffe14d

Patch Changes

  • a483743: 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.