react-native-swipe-item icon indicating copy to clipboard operation
react-native-swipe-item copied to clipboard

swipeContainer.height causing view cannot use auto height

Open deckyfx opened this issue 2 years ago • 0 comments

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

deckyfx avatar Jun 22 '22 05:06 deckyfx