Skip to content

Commit 82152b5

Browse files
chore(release): version packages (beta) (#83)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f9b6128 commit 82152b5

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

.changeset/pre.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
"changesets": [
1010
"afraid-worlds-create",
1111
"curvy-bottles-fold",
12+
"good-tables-clap",
1213
"itchy-birds-count",
1314
"light-boxes-hope",
1415
"major-areas-mix",
16+
"many-ideas-trade",
1517
"plain-buttons-start",
18+
"rude-brooms-peel",
1619
"tame-hornets-lay",
1720
"tender-cows-flow"
1821
]

CHANGELOG.md

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

3+
## 2.0.0-beta.5
4+
5+
### Minor Changes
6+
7+
- adfb590: feat: implement trigger-based modal animation system
8+
9+
- Add `GestureTrigger` component for registering trigger elements
10+
- Implement trigger position-based modal open/close animations
11+
- Add `GestureViewerRegistry` for managing trigger nodes
12+
- Support customizable animation config (duration, easing, callbacks)
13+
- Enable smooth transition from trigger element to full modal view
14+
15+
Example:
16+
17+
```tsx
18+
import { GestureTrigger, GestureViewer } from 'react-native-gesture-image-viewer';
19+
20+
// Wrap your thumbnail with GestureTrigger
21+
<GestureTrigger id="gallery" onPress={() => openModal(index)}>
22+
<Pressable style={styles.thumb}>
23+
<Image source={{ uri }} style={styles.thumbImage} />
24+
</Pressable>
25+
</GestureTrigger>
26+
27+
// Configure GestureViewer with matching id
28+
<GestureViewer
29+
id="gallery"
30+
data={images}
31+
renderItem={renderImage}
32+
triggerAnimation={{
33+
duration: 300,
34+
easing: Easing.bezier(0.25, 0.1, 0.25, 1.0),
35+
onAnimationComplete: () => console.log('Animation finished!')
36+
}}
37+
/>
38+
```
39+
40+
### Patch Changes
41+
42+
- 8856347: fix: disable the dismiss pan gesture when `dismiss.enabled` is false
43+
- d32950f: docs: add trigger-based modal animations documentation
44+
345
## 2.0.0-beta.4
446

547
### Patch 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.0.0-beta.4",
3+
"version": "2.0.0-beta.5",
44
"description": "🖼️ A highly customizable and easy-to-use React Native image viewer with gesture support and external controls",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",

0 commit comments

Comments
 (0)