Closed devoren closed 1 year ago
Maybe you can render two items in one? Just like
const itemWidth = xx;
const itemHeight = xx;
<RNCarousel
vertical
ref={ref}
width={itemWidth}
height={itemWidth*2}
data={[
[1,2],
[3,4],
[5,6],
]}
loop={true}
autoPlay={true}
pagingEnabled={false}
autoPlayInterval={5000}
scrollAnimationDuration={600}
windowSize={3}
renderItem={({item})=>{
const [item_1,item_2] = item;
return ...
}}
enabled={false}
overscrollEnabled={false}
style={{
width: itemWidth,
height: itemHeight,
}}
customAnimation={animationStyle}
/>
Hope I understand your question correctly.
@dohooo This is what I want 💯 Thank you very much!
Hi! I have a vertical carousel which is disabled for scrolling. I want to create a custom animation that scrolls to 2 items, not 1. When the carousel scrolls, only 1 item scrolls, not 2. Do you know how to implement this? What i have now: