react-native-swipeable-actions 1.0.0-rc.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/docs/migration-v1.md +2 -2
- package/docs/support.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,75 @@ the entry for the matching version.
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 1.0.0 - 2026-10-20
|
|
9
|
+
|
|
10
|
+
First stable v1 release. Install it with
|
|
11
|
+
`npx expo install react-native-swipeable-actions@^1`. Rebuild the iOS and Android
|
|
12
|
+
apps after you upgrade. Read the [v1 migration guide](docs/migration-v1.md).
|
|
13
|
+
The package code is the same as in 1.0.0-rc.0. The lists below are the changes
|
|
14
|
+
since 0.1.12.
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
- The package requires the New Architecture (Fabric) on iOS and Android. The
|
|
19
|
+
legacy architecture (Paper) is not supported. The iOS view does not compile on it.
|
|
20
|
+
- The minimum peer versions are now Expo SDK 54 (`expo >=54.0.0`), React Native
|
|
21
|
+
0.81 (`react-native >=0.81.0`) and React 19.1 (`react >=19.1.0`).
|
|
22
|
+
- Removed `actions`, `actionsWidth` and `actionsPosition`. Pass explicit pairs:
|
|
23
|
+
`rightActions` + `rightActionsWidth` and/or `leftActions` + `leftActionsWidth`
|
|
24
|
+
([#15](https://github.com/chocky335/react-native-swipeable-actions/issues/15)).
|
|
25
|
+
- Removed `SWIPE_DEFAULTS.ACTIONS_POSITION`. There is no default side.
|
|
26
|
+
- Removed `actionsWidth` and `actionsPosition` from the raw `SwipeableView` props.
|
|
27
|
+
- `SwipeableProps` is now a union type of valid side configurations, not an
|
|
28
|
+
interface. Use `SwipeableProps & { ... }` for wrapper props.
|
|
29
|
+
- Every row uses one native engine. Rows migrated from the single-sided API take
|
|
30
|
+
its behavior:
|
|
31
|
+
- A drag toward a disabled side stays closed and does not start a swipe. The
|
|
32
|
+
old wrong-direction rubber band is gone.
|
|
33
|
+
- `onSwipeStateChange` follows the active side. Do not depend on the old
|
|
34
|
+
callback cadence.
|
|
35
|
+
- `close(false)` and `cancel()` also clear the cached open state for the key.
|
|
36
|
+
- Cache restoration and width updates are not swipes. Do not use the swipe
|
|
37
|
+
callbacks to detect them.
|
|
38
|
+
- `open()` with no side opens the right side if it is enabled, else the left side.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- Independent left and right actions on one row, each with its own width.
|
|
43
|
+
- `open(side)` and `Swipeable.open(key, side)`.
|
|
44
|
+
- `onLeftSwipeEnd` and `onRightSwipeEnd`. They run after `onSwipeEnd`.
|
|
45
|
+
- Opt-in `appearance="ios26"` iOS action motion, and the `hapticFeedback`
|
|
46
|
+
prop for the iOS threshold haptic. Reduce Motion removes the motion scaling
|
|
47
|
+
([#19](https://github.com/chocky335/react-native-swipeable-actions/issues/19)).
|
|
48
|
+
- Type exports `SwipeSide`, `SwipeAppearance`, `SwipeableCommonProps`,
|
|
49
|
+
`SwipeStartEvent`, and the aliases `TwoSidedSwipeableProps` and
|
|
50
|
+
`SwipeableComponentProps`.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- Action alignment on the physical edge in RTL layouts.
|
|
55
|
+
- A recycled or rebound row no longer receives commands, callbacks or open state
|
|
56
|
+
from its previous key.
|
|
57
|
+
- A drag that crosses the closed position no longer opens the opposite side.
|
|
58
|
+
- On Android, content replaced during a drag no longer keeps the drag offset.
|
|
59
|
+
- `Swipeable.closeAll()` now also closes rows that are not mounted (scrolled off
|
|
60
|
+
or on a covered screen), like `Swipeable.close(key)`.
|
|
61
|
+
- `expo-modules-core` is no longer a peer dependency. A fresh `npm install`
|
|
62
|
+
could pull a newer expo-modules-core than the app's Expo SDK uses. The app now
|
|
63
|
+
gets the version its `expo` package brings.
|
|
64
|
+
- The shipped Jest mock (`jestSetup.js`) no longer calls `onSwipeStart` when a row
|
|
65
|
+
mounts. Tests that relied on that call must fire the native event themselves,
|
|
66
|
+
as the README shows.
|
|
67
|
+
- On Android, a swipe with no touch events for 5 seconds is now cancelled
|
|
68
|
+
without an `onSwipeEnd`, and the rest of that touch is ignored.
|
|
69
|
+
- A cancelled swipe now reports the position where the row settles to
|
|
70
|
+
`onProgress` and `onSwipeStateChange`, so a progress UI does not stay mid-drag.
|
|
71
|
+
- An `autoClose` row that a cancelled drag returns to open now waits
|
|
72
|
+
`autoCloseTimeout` again and closes. Before, it stayed open.
|
|
73
|
+
- On iOS, a pan that has not passed `dragOffsetFromEdge` no longer stops a
|
|
74
|
+
pending auto-close or a settling animation. That work and a props change also
|
|
75
|
+
no longer swallow the pan, so the pan can still start a swipe, like on Android.
|
|
76
|
+
|
|
8
77
|
## 1.0.0-rc.0 - 2026-10-17
|
|
9
78
|
|
|
10
79
|
First release candidate for 1.0.0. Install it with
|
package/docs/migration-v1.md
CHANGED
|
@@ -10,8 +10,8 @@ Do not mix v1 JavaScript with an older native binary.
|
|
|
10
10
|
architecture (Paper) is not supported. If your app still uses it, stay on 0.x.
|
|
11
11
|
- v1 requires Expo SDK 54 or newer, React Native 0.81 or newer and React 19.1 or
|
|
12
12
|
newer. Upgrade the app first, then install v1.
|
|
13
|
-
- Install it with `npx expo install react-native-swipeable-actions
|
|
14
|
-
|
|
13
|
+
- Install it with `npx expo install react-native-swipeable-actions@^1`, then rebuild
|
|
14
|
+
the iOS and Android apps.
|
|
15
15
|
|
|
16
16
|
## At a glance
|
|
17
17
|
|
package/docs/support.md
CHANGED
|
@@ -44,7 +44,7 @@ The package declares these ranges. They are minimums, not a tested matrix.
|
|
|
44
44
|
|
|
45
45
|
## Tested for 1.0
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Each 1.0 release must pass a full CI run on every configuration below. The E2E suite has 62 cases
|
|
48
48
|
(25 single-sided, 19 two-sided, 14 RTL, 3 swipe to go back, 1 performance) plus the
|
|
49
49
|
Maestro flows.
|
|
50
50
|
|
package/package.json
CHANGED