react-native-gesture-image-viewer@2.0.0-beta.3
Pre-release
Pre-release
·
7 commits
to main
since this release
Patch Changes
-
91320d6: fix(useGestureViewerController): Prevent tearing and optimize rendering
- Refactors
useGestureViewerController
to useuseSyncExternalStore
. - 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.
- Refactors