dohooo / react-native-reanimated-carousel

🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)
https://react-native-reanimated-carousel.vercel.app
MIT License
2.59k stars 297 forks source link

Stack not appearing correctly #595

Open CoreyBovalina opened 2 months ago

CoreyBovalina commented 2 months ago

If I have 3 items in a stack only 2 items show in the stack and the 2nd item is very transparent. If I have 2 items in a stack it shows as expected.

How can I fix this?

Describe the bug A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!

To Reproduce

<Carousel
          data={images}
          defaultIndex={0}
          renderItem={renderItem}
          vertical={false}
          loop={true}
          autoPlay={false}
          style={{
            width: '100%',
            height: imageHeight,
          }}
          width={
            fullScreen
              ? screenDimensions.width - 20
              : (screenDimensions.width - 20) / 2
          }
          mode="horizontal-stack"
          windowSize={5}
          snapEnabled
          pagingEnabled
          modeConfig={{
            snapDirection: 'left',
            stackInterval: 15,
            rotateZDeg: 0,
            scaleInterval: 0.01,
          }}
          customConfig={() => ({ type: 'positive', viewCount: imageCount })}
          panGestureHandlerProps={{
            activeOffsetX: [-20, 20],
            failOffsetY: [-20, 20],
          }}
        />

Expected behavior 3 item stack should show the same as a 2 item stack

Screenshots

image

Versions (please complete the following information):

Smartphone (please complete the following information): All devices

Additional context

dosubot[bot] commented 2 months ago

Hey there, @CoreyBovalina! 👋 I'm Dosu, your friendly neighborhood bot here to lend a hand with bugs, answer your questions, and guide you on becoming a contributor if that tickles your fancy. Just letting you know I'm here to support you while we wait for a human maintainer to swoop in. I'm currently reviewing your issue about the stack not appearing correctly, and I'll get back to you with a full answer shortly. Stay tuned!

CoreyBovalina commented 3 weeks ago

anyone else experience this?