Skip to content

Commit eb4b61b

Browse files
chore(release): version packages
1 parent 58341ea commit eb4b61b

5 files changed

Lines changed: 40 additions & 43 deletions

File tree

.changeset/major-animals-sin.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/orange-squids-grin.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/single-tap-events.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# react-native-gesture-image-viewer
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- [#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`
8+
9+
This release adds `onSingleTap` to `GestureViewer` so you can handle confirmed single taps without overlaying an extra pressable on top of the viewer.
10+
11+
```tsx
12+
<GestureViewer
13+
data={images}
14+
renderItem={renderImage}
15+
onSingleTap={() => setShowControls((prev) => !prev)}
16+
/>
17+
```
18+
19+
It also adds a `tap` event to `useGestureViewerEvent`, currently emitting confirmed single taps with `{ kind: 'single', x, y, index }`.
20+
21+
```tsx
22+
useGestureViewerEvent("tap", (event) => {
23+
if (event.kind === "single") {
24+
console.log(`Tapped item ${event.index} at (${event.x}, ${event.y})`);
25+
}
26+
});
27+
```
28+
29+
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.
30+
31+
Related discussion: https://github.com/saseungmin/react-native-gesture-image-viewer/discussions/157
32+
33+
### Patch Changes
34+
35+
- [#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
36+
37+
- [llms.txt](https://react-native-gesture-image-viewer.pages.dev/llms.txt)
38+
- [llms-full.txt](https://react-native-gesture-image-viewer.pages.dev/llms-full.txt)
39+
40+
- [`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
41+
342
## 2.2.0
443

544
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-gesture-image-viewer",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "🖼️ React Native Image Viewer - Reanimated-powered image gestures with full control",
55
"keywords": [
66
"android",

0 commit comments

Comments
 (0)