Skip to content

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

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 02:29
· 7 commits to main since this release
36b31f8

Patch Changes

  • e5f9744: fix: prevent multiple onIndexChange calls during initialization

    • Remove redundant currentIndex state to avoid duplicate callbacks
    • Use manager subscription as single source of truth for index changes
    • Implement ref pattern for onIndexChange to prevent stale closures
    • Ensure onIndexChange only fires on actual user interactions, not internal state changes

    Now onIndexChange correctly fires only once during initialization.

    Fixes #67