Skip to content

v4.0.0-rc.0

Pre-release
Pre-release

Choose a tag to compare

@jemise111 jemise111 released this 14 Jun 15:31
· 2 commits to master since this release
d3550f2

First release candidate of the v4 rewrite, published on the npm next dist-tag.

npm install react-native-swipe-list-view@next

v4 is a from-scratch rewrite on TypeScript, react-native-gesture-handler v2, and react-native-reanimated v3 (gestures + animation on the UI thread). The public API stays close to v3 apart from the breaking changes below.

Please try it and report anything that breaks — that's the point of the RC. If you hit a breaking change not already documented, open an issue before this is promoted to latest.

Breaking changes

  1. New peer deps: react-native-gesture-handler + react-native-reanimated; wrap your app in <GestureHandlerRootView> and add the Reanimated Babel plugin.
  2. Minimum versions: react 18 / react-native 0.73.
  3. ListView-era API removed (dataSource, renderRow, renderHiddenRow, renderListView, useFlatList, previewFirstRow, previewRowIndex).
  4. useNativeDriver / useAnimatedList removed (no-ops under Reanimated).
  5. onSwipeValueChange still works; swipeAnimatedValue (a SharedValue) is the recommended replacement.
  6. swipeGestureEnded payload: event is an RNGH GestureStateChangeEvent; gestureState removed (velocityX now px/s).
  7. rowMap entries / SwipeRow refs are imperative handles, not class instances.
  8. onScroll must be a plain function.

Links