From 0988618dc58c45eb1c93243e54c40ceaf58e85de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 08:59:23 +0000 Subject: [PATCH 1/3] chore(release): version packages --- .changeset/major-animals-sin.md | 8 ----- .changeset/orange-squids-grin.md | 5 --- .changeset/single-tap-events.md | 29 ---------------- .changeset/soft-cameras-invite.md | 21 ------------ CHANGELOG.md | 57 +++++++++++++++++++++++++++++++ package.json | 2 +- 6 files changed, 58 insertions(+), 64 deletions(-) delete mode 100644 .changeset/major-animals-sin.md delete mode 100644 .changeset/orange-squids-grin.md delete mode 100644 .changeset/single-tap-events.md delete mode 100644 .changeset/soft-cameras-invite.md diff --git a/.changeset/major-animals-sin.md b/.changeset/major-animals-sin.md deleted file mode 100644 index 3d2eea8..0000000 --- a/.changeset/major-animals-sin.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'react-native-gesture-image-viewer': patch ---- - -docs: add AI documentation links to README - -- [llms.txt](https://react-native-gesture-image-viewer.pages.dev/llms.txt) -- [llms-full.txt](https://react-native-gesture-image-viewer.pages.dev/llms-full.txt) diff --git a/.changeset/orange-squids-grin.md b/.changeset/orange-squids-grin.md deleted file mode 100644 index 72d0474..0000000 --- a/.changeset/orange-squids-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-native-gesture-image-viewer": patch ---- - -fix: support bidirectional (up & down) swipe-to-dismiss diff --git a/.changeset/single-tap-events.md b/.changeset/single-tap-events.md deleted file mode 100644 index 7acfa3b..0000000 --- a/.changeset/single-tap-events.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'react-native-gesture-image-viewer': minor ---- - -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. - -```tsx - setShowControls((prev) => !prev)} -/> -``` - -It also adds a `tap` event to `useGestureViewerEvent`, currently emitting confirmed single taps with `{ kind: 'single', x, y, index }`. - -```tsx -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: https://github.com/saseungmin/react-native-gesture-image-viewer/discussions/157 diff --git a/.changeset/soft-cameras-invite.md b/.changeset/soft-cameras-invite.md deleted file mode 100644 index d4eb970..0000000 --- a/.changeset/soft-cameras-invite.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'react-native-gesture-image-viewer': minor ---- - -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: - -```tsx - -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f8b14f..a3e9f27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,62 @@ # react-native-gesture-image-viewer +## 2.3.0 + +### Minor Changes + +- [#158](https://github.com/saseungmin/react-native-gesture-image-viewer/pull/158) [`7999145`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/79991459c353814bdeb9a7a06205f74b8faf35a1) Thanks [@saseungmin](https://github.com/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. + + ```tsx + setShowControls((prev) => !prev)} + /> + ``` + + It also adds a `tap` event to `useGestureViewerEvent`, currently emitting confirmed single taps with `{ kind: 'single', x, y, index }`. + + ```tsx + 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: https://github.com/saseungmin/react-native-gesture-image-viewer/discussions/157 + +- [#161](https://github.com/saseungmin/react-native-gesture-image-viewer/pull/161) [`5e8ad1f`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/5e8ad1f069e22fee60633a118171d45b9b78dcb0) Thanks [@saseungmin](https://github.com/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: + + ```tsx + + ``` + +### Patch Changes + +- [#160](https://github.com/saseungmin/react-native-gesture-image-viewer/pull/160) [`8f3ce64`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/8f3ce64761e66d753af8a2688bf6e021aa787675) Thanks [@saseungmin](https://github.com/saseungmin)! - docs: add AI documentation links to README + + - [llms.txt](https://react-native-gesture-image-viewer.pages.dev/llms.txt) + - [llms-full.txt](https://react-native-gesture-image-viewer.pages.dev/llms-full.txt) + +- [`58341ea`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/58341ea2b3248a5c3dd5e8c94e19cfc884028d6a) Thanks [@saseungmin](https://github.com/saseungmin)! - fix: support bidirectional (up & down) swipe-to-dismiss + ## 2.2.0 ### Minor Changes diff --git a/package.json b/package.json index a1e345f..eb6aad6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-gesture-image-viewer", - "version": "2.2.0", + "version": "2.3.0", "description": "🖼️ React Native Image Viewer - Reanimated-powered image gestures with full control", "keywords": [ "android", From 5efb1b9e40c3963fe854fdf45d6d70af1dcabd5a Mon Sep 17 00:00:00 2001 From: harang Date: Sun, 19 Apr 2026 18:07:14 +0900 Subject: [PATCH 2/3] chore: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e9f27..e5c2887 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,7 +55,7 @@ - [llms.txt](https://react-native-gesture-image-viewer.pages.dev/llms.txt) - [llms-full.txt](https://react-native-gesture-image-viewer.pages.dev/llms-full.txt) -- [`58341ea`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/58341ea2b3248a5c3dd5e8c94e19cfc884028d6a) Thanks [@saseungmin](https://github.com/saseungmin)! - fix: support bidirectional (up & down) swipe-to-dismiss +- [#156](https://github.com/saseungmin/react-native-gesture-image-viewer/pull/156) [`63c258f`](https://github.com/saseungmin/react-native-gesture-image-viewer/commit/63c258f229808725c276807d404879437dcdd5a6) Thanks [@cljamal](https://github.com/cljamal)! - fix: support bidirectional (up & down) swipe-to-dismiss ## 2.2.0 From 203d982b31aa1269f06aaef05bcf8d13a97092d5 Mon Sep 17 00:00:00 2001 From: harang Date: Sun, 19 Apr 2026 18:10:04 +0900 Subject: [PATCH 3/3] docs: update changelog --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5c2887..0362574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,6 @@ renderItem={renderImage} dismiss={{ direction: "both", - threshold: 100, }} /> ```