0.0.6 • Published 3 years ago

react-native-swipe-action-list v0.0.6

Weekly downloads
182
License
Apache-2.0
Repository
github
Last release
3 years ago

react-native-swipe-action-list

npm version npm downloads build

A list view that supports swipe actions for React Native (Android & iOS).

demo gif

Installation

npm i react-native-swipe-action-list

or

yarn add react-native-swipe-action-list

API

<SwipeActionList />

PropTypeRequiredDescription
dataarrayYesAn array of items to be rendered in the list.
keyExtractorfunctionYesA function that returns an item's key.
renderItemfunctionYesA render function for each item row.
renderLeftHiddenItemfunctionYesA render function for the hidden view that appears when a user swipes left.
renderRightHiddenItemfunctionYesA render function for the hidden view that appears when a user swipes right.
onSwipeLeftfunctionNoA callback invoked after a user has finished swiping left.
onSwipeRightfunctionNoA callback invoked after a user has finished swiping right.