SwipeActions
React Native component for firing actions based on swipe gestures:
Install
npm install swipe-actions --save
Use
Wrap main component in <SwipeActions />
, pass two components and two callbacks as the upper and lower actions:
const mainComponent = <View> <Text> Child Component </Text></View>; // components shown on swipeconst node = <View> <Text> ` Action` </Text> </View>; // callbacks fired on releaseconst action = Alert; <SwipeActions upperAction= lowerAction= upperNode= lowerNode=> mainComponent</SwipeActions>
Please ★ on GitHub!