Overview:
The npm package react-native-swipe-list-view provides a vertical ListView with rows that can be swiped open and closed. It offers features like handling default native behaviors, using SwipeRow for swipeable rows outside of SwipeListView, and is now compatible with RN 0.60+ by using version 2.0.0 and migrating to FlatList.
Features:
- Vertical ListView: Allows for swiping rows open and closed.
- SwipeRow Component: Enables the use of swipeable rows outside of
SwipeListView. - Compatibility with RN 0.60+: Supports React Native 0.60+ and version 2.0.0 requires the use of FlatList.
Installation:
To install the react-native-swipe-list-view, follow these steps:
- Clone the repository:
git clone https://github.com/jemise111/react-native-swipe-list-view.git - Navigate to the example directory:
cd react-native-swipe-list-view/SwipeListExample - Install dependencies:
yarn && cd ios && pod install && cd .. - Run the application:
react-native run-iosorreact-native run-android
Summary:
The react-native-swipe-list-view npm package provides a convenient solution for implementing swipeable rows in a vertical ListView. With its support for React Native 0.60+ and the use of FlatList, it offers a modern approach to handling swipe interactions in mobile applications.