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..0362574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,61 @@ # 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) + +- [#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 ### 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",