meliorence / react-native-snap-carousel

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.37k stars 2.29k forks source link

Spacing issue between two slide of carousel. #861

Open pateljinal1844 opened 3 years ago

pateljinal1844 commented 3 years ago

I want to make a caousel which is same as first GIF available on this https://github.com/meliorence/react-native-snap-carousel. Issue I am facing is i am not able to set space between two slides. I tried to do that using padding horizontal but with that I am not able to set current slide in centre as PaddingHorizontal has high precedence over activeSlideAlignment.

My requirement is current slider in centre, some portion of previous and next slide should be visible, some space should be available between two slides. And Current slide in centre means first and last slide should also be in centre.

Waiting for your support.

dohooo commented 3 years ago

@pateljinal1844 Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2