Home > database >  Stack of images in flatlist which can swipe horizontally
Stack of images in flatlist which can swipe horizontally

Time:12-28

I am trying to create a stack of images in react native flatlist which can swipe horizontally with the help of zindex but have no luck. Please see the attached image for reference. https://i.stack.imgur.com/B6nHE.png

PS: I've used react-native-snap-crousel but the behaviour is not same across platform.

CodePudding user response:

Why are you using a FlatList for this though? Based on the attached image, I'd recommend you use a View as a wrapper for the images, then make the images position absolute. Then, you can use left or right to shift their positions.

CodePudding user response:

You want to create Stack of images which are swipe horizontally,
then No need to use Flatlist for that you use following dependencies;
react-native-snap-carousel
click on it and check various type of Examples.

You want this

Hope This will helpfull :)

  • Related