Skip to content

chore(release): version packages#159

Merged
saseungmin merged 3 commits into
mainfrom
changeset-release/main
Apr 19, 2026
Merged

chore(release): version packages#159
saseungmin merged 3 commits into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 18, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

react-native-gesture-image-viewer@2.3.0

Minor Changes

  • #158 7999145 Thanks @saseungmin! - feat: add cross-platform single tap support for GestureViewer

    This release adds onSingleTap to GestureViewer so you can handle confirmed single taps without overlaying an extra pressable on top of the viewer.

    <GestureViewer
      data={images}
      renderItem={renderImage}
      onSingleTap={() => setShowControls((prev) => !prev)}
    />

    It also adds a tap event to useGestureViewerEvent, currently emitting confirmed single taps with { kind: 'single', x, y, index }.

    useGestureViewerEvent("tap", (event) => {
      if (event.kind === "single") {
        console.log(`Tapped item ${event.index} at (${event.x}, ${event.y})`);
      }
    });

    This improves common viewer UI patterns such as toggling headers, toolbars, counters, or captions on tap while preserving swipe, pinch, dismiss, and double-tap zoom behavior.

    Related discussion: Add onTap method to GestureViewer #157

  • #161 5e8ad1f Thanks @saseungmin! - feat: add configurable dismiss swipe directions

    • GestureViewer now supports dismiss.direction with down, up, and both.
    • The default remains down for backward compatibility, and backdrop fading now follows the configured dismiss direction.

    Example:

    <GestureViewer
      data={images}
      renderItem={renderImage}
      dismiss={{
        direction: "both",
        threshold: 100,
      }}
    />

Patch Changes

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 72419df to 8f44dc0 Compare April 18, 2026 09:19
@github-actions github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 9d10403 to eb4b61b Compare April 19, 2026 08:54
@github-actions github-actions Bot force-pushed the changeset-release/main branch from eb4b61b to 0988618 Compare April 19, 2026 08:59
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Apr 19, 2026
@saseungmin saseungmin merged commit 534a7ef into main Apr 19, 2026
4 checks passed
@saseungmin saseungmin deleted the changeset-release/main branch April 19, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant