v4.0.0-rc.0
Pre-release
Pre-release
First release candidate of the v4 rewrite, published on the npm next dist-tag.
npm install react-native-swipe-list-view@nextv4 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
- New peer deps:
react-native-gesture-handler+react-native-reanimated; wrap your app in<GestureHandlerRootView>and add the Reanimated Babel plugin. - Minimum versions: react 18 / react-native 0.73.
- ListView-era API removed (
dataSource,renderRow,renderHiddenRow,renderListView,useFlatList,previewFirstRow,previewRowIndex). useNativeDriver/useAnimatedListremoved (no-ops under Reanimated).onSwipeValueChangestill works;swipeAnimatedValue(a SharedValue) is the recommended replacement.swipeGestureEndedpayload:eventis an RNGHGestureStateChangeEvent;gestureStateremoved (velocityXnow px/s).rowMapentries /SwipeRowrefs are imperative handles, not class instances.onScrollmust be a plain function.