react-native-swipe-item
react-native-swipe-item copied to clipboard
swipeContainer.height causing view cannot use auto height
In your code
const containerStyles = StyleSheet.create({
...
swipeContainer: {
height: '100%',
width: '100%',
},
});
the height style, causing SwipeableItem cannot auto determine its height based on its content's height, so you always need to specify the SwipeableItem height,
this causes an issue when I try to use this in an array of views that may have various heights.
The width may cause a similar issue, but I didn't try it yet, i suggest that you make them can be overridden by a configurable property