From f171e0105333b84e3ae3e38b0dc4e89f7b7f9401 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 03:30:35 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/dismiss-direction-interaction.md | 17 ---------- .changeset/phase-interaction-signal.md | 17 ---------- CHANGELOG.md | 35 +++++++++++++++++++++ package.json | 2 +- 4 files changed, 36 insertions(+), 35 deletions(-) delete mode 100644 .changeset/dismiss-direction-interaction.md delete mode 100644 .changeset/phase-interaction-signal.md diff --git a/.changeset/dismiss-direction-interaction.md b/.changeset/dismiss-direction-interaction.md deleted file mode 100644 index 51c417e..0000000 --- a/.changeset/dismiss-direction-interaction.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@react-native-motion-kit/swipe-deck': minor ---- - -Add `interaction.dismissDirection` to `useDeckInteraction()` so UI-thread consumers can read the accepted dismiss side without waiting for JS swipe events or inferring from raw drag direction. - -```tsx -function DeckDismissFeedback() { - const { dismissDirection, phase } = ProfileDeck.useDeckInteraction(); - - const rightStyle = useAnimatedStyle(() => ({ - opacity: phase.get() === 'dismissing' && dismissDirection.get() === 'right' ? 1 : 0, - })); - - return ; -} -``` diff --git a/.changeset/phase-interaction-signal.md b/.changeset/phase-interaction-signal.md deleted file mode 100644 index ffbe3fc..0000000 --- a/.changeset/phase-interaction-signal.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@react-native-motion-kit/swipe-deck': minor ---- - -Add `interaction.phase` to `useDeckInteraction()` so UI-thread consumers can distinguish idle, dragging, dismissing, and undoing deck lifecycles without inferring from progress or JS events. - -```tsx -function DeckPhaseFeedback() { - const { phase } = ProfileDeck.useDeckInteraction(); - - const dismissingStyle = useAnimatedStyle(() => ({ - opacity: phase.get() === 'dismissing' ? 1 : 0.32, - })); - - return ; -} -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 1577fd7..acd2641 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # @react-native-motion-kit/swipe-deck +## 1.1.0 + +### Minor Changes + +- [#9](https://github.com/react-native-motion-kit/react-native-swipe-deck/pull/9) [`da9b96e`](https://github.com/react-native-motion-kit/react-native-swipe-deck/commit/da9b96ec75d1ca8049bcef16a60170de916ca64b) Thanks [@saseungmin](https://github.com/saseungmin)! - Add `interaction.dismissDirection` to `useDeckInteraction()` so UI-thread consumers can read the accepted dismiss side without waiting for JS swipe events or inferring from raw drag direction. + + ```tsx + function DeckDismissFeedback() { + const { dismissDirection, phase } = ProfileDeck.useDeckInteraction(); + + const rightStyle = useAnimatedStyle(() => ({ + opacity: + phase.get() === "dismissing" && dismissDirection.get() === "right" + ? 1 + : 0, + })); + + return ; + } + ``` + +- [#7](https://github.com/react-native-motion-kit/react-native-swipe-deck/pull/7) [`c3d8949`](https://github.com/react-native-motion-kit/react-native-swipe-deck/commit/c3d89495dd6ccb2095ef736da238052f9a0120dd) Thanks [@saseungmin](https://github.com/saseungmin)! - Add `interaction.phase` to `useDeckInteraction()` so UI-thread consumers can distinguish idle, dragging, dismissing, and undoing deck lifecycles without inferring from progress or JS events. + + ```tsx + function DeckPhaseFeedback() { + const { phase } = ProfileDeck.useDeckInteraction(); + + const dismissingStyle = useAnimatedStyle(() => ({ + opacity: phase.get() === "dismissing" ? 1 : 0.32, + })); + + return ; + } + ``` + ## 1.0.2 ### Patch Changes diff --git a/package.json b/package.json index 5875e23..28f7f9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-motion-kit/swipe-deck", - "version": "1.0.2", + "version": "1.1.0", "description": "High-performance Tinder-style swipe deck and swipe cards for React Native, powered by Reanimated and Gesture Handler.", "keywords": [ "android",