react-native-universal-list
A wrapper around react-native/SectionList with swipe from right ability on every list item.
Installation
yarn add react-native-universal-list
Usage:
Component { const data = Array; // console.log(data); return <View style=stylescontainer> <UniversalList data=data renderItem= <TouchableWithoutFeedback onPress= console> <View style= padding: 16 backgroundColor: '#ffc' > <Text>itemkey || 'undefined'</Text> </View> </TouchableWithoutFeedback> renderRight= <View style= flexDirection: 'row' > <TouchableWithoutFeedback onPress= console> <View style= width: 80 padding: 16 backgroundColor: '#009' > <Text style= color: '#fff' >View</Text> </View> </TouchableWithoutFeedback> <TouchableWithoutFeedback onPress= console> <View style= width: 80 padding: 16 backgroundColor: '#f00' > <Text style= color: '#fff' >Delete</Text> </View> </TouchableWithoutFeedback> </View> /> </View> ; }
Example
Try out Expo snack