Closed Drckk closed 3 years ago
This happens when autoplay and vertical are set, and itemHeight is less than 40.
Using activeSlideOffset props can solve my problem (default value is 20)
<Carousel activeSlideOffset={height / 2 - 2} // add this scrollEnabled={false} style={{flex: 1}} data={data} renderItem={renderItem} autoplay loop vertical itemWidth={width} itemHeight={height} sliderWidth={width} sliderHeight={height} autoplayDelay={500} autoplayInterval={3000} removeClippedSubviews={false} />
May not be the best way, but it did solve my problem. Hope to help someone in need.😃
"react-native": "0.62.3", "react-native-snap-carousel": "^3.9.1",
This happens when autoplay and vertical are set, and itemHeight is less than 40.
Using activeSlideOffset props can solve my problem (default value is 20)
May not be the best way, but it did solve my problem. Hope to help someone in need.😃
"react-native": "0.62.3", "react-native-snap-carousel": "^3.9.1",