0.1.2 • Published 7 years ago

react-native-swiping-row v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

React-Native-Swiping-Row

Based on Wix react-native-animatable drawer.

A component that can be used in react-native ListView.

Place buttons underneath your row.

Specify what actions should be performed when the row is swiped fully right or left.

Running Example Running Example

Row Properties

PropertyValueDescription
leftButtonsArrayArray of buttons to display on the left side
rightButtonsArrayArray of buttons to display on the right side
leftFullSwipeActionFunctionFunction to execute when the row is fully swiped left
rightFullSwipeActionFunctionFunction to execute when the row is fully swiped right

Button Properties

PropertyValueDescription
defaultActionBooleanButton to be used as the default action when fully swiped
fadeInBooleanFade in the button as the row is swiped
iconComponentIcon to be added to the button
widthNumberWidth of the button
textStringText to be displayed on the button
textStyleStyleSheetStyles to be applied to the button text
styleStyleSheetStyles to be applied to the button container
onPressFunctionFunction to be executed when the button is tapped
onLongPressFunctionFunction to be executed when the button is long pressed