esthor/react-native-swipeable-list
关于
适用于 React Native 的零依赖可滑动 FlatList,支持手势、快捷操作和动画。就是这么简单。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-native-swipeable-list
A zero-dependency, Swipeable FlatList for React-Native with Quick Actions, Gestures, and Animations.

Usage
Install the package in your project:
npm install react-native-swipeable-listoryarn add react-native-swipeable-listImport the component into your component:
import SwipeableFlatList from 'react-native-swipeable-list';Pass it a data array. It inherits FlatListProps from the standard
FlatListcomponent from react-native.
It can be passed additional props:
shouldBounceOnMount(default =true) - To alert the user that swiping is possible, the first row can bounce on component mount. TypebooleanmaxSwipeDistance- Maximum distance to open to after a swipe. Typenumber || (Object => number)renderQuickActions- Callback method to render the view that will be unveiled on swipe. TyperenderItemType(which providesindexanditem, which will be very useful for performing actions on your items)
Example
Check out the example in the /examples folder. Clone this repo, then cd examples && yarn install && yarn start and then either react-native run-ios or react-native run-android to get the app up and running locally. Play with the code and see what you can do! 😎
History & Shoutouts
Started from the SwipeableFlatList component that was removed from react-native's experimental libraries. (See: https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4)
探索相关项目
加载中…