react-native-snap-carousel
react-native-snap-carousel copied to clipboard
Android loop stop at last item while scroll
Is this a bug report, a feature request, or a question?
a bug report
Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an x
character between the square brackets ([]
).)
- [x] I have read the guidelines regarding bug report.
- [x] I have reviewed the documentation in its entirety, including the dedicated documentations :books:.
- [x] I have searched for existing issues and made sure that the problem hasn't already been reported.
- [x] I am using the latest plugin version.
- [x] I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn't a React Native bug?
no
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
not sure , only tested in android
Is the bug reproductible in a production environment (not a debug one)?
yes
Environment
Environment: React: 16.8.3 React native: 0.59.8 react-native-snap-carousel: 3.8.0
Target Platform: Android (8.1/9.0)
Expected Behavior
loop all the way
Actual Behavior
https://youtu.be/hp_bmguntpU
Reproducible Demo
https://snack.expo.io/H1C69zzRV
Hi @cani1see,
Does it work if you swipe "slowly"? Because the loop dynamic might require a short idle time.
Also, note that this plugin isn't your best option if you intend to display fullscreen slides. See this if you want more info.
I also encounter this issue on Android. I used the example code and use 'stack' layout. I cannot continue scrolling at the last item :( loop doesn't work
@bd-arc slowly or not, it will come up. actually I want to do the scale effect, and I asked a question about style. https://github.com/archriss/react-native-snap-carousel/issues/526
Had the same problem when testing out this package, this prop seems to "fix" this issue:
loopClonesPerSide={2}
This definitely seems like a bug on Android however.
Do you have any update? I have same issue
Same issue.
Same issue too.
When scroll to left, it works well. However, when scroll to right, it encounts an end and doesn't scroll any more.
May be there is a problem when check whether it encounts the end or start.
My code is like below
<Carousel
data={this.state.items}
keyExtractor = { (item, index) => index.toString() }
renderItem={({item, index})=> {
this._renderItem(item, index)
}}
loop={true}
loopClonesPerSide = {4}
autoplay = {true}
autoplayInterval = {8000}
horizontal ={ true }
sliderWidth={ width }
itemWidth ={ slideWidth + paddingX }
activeSlideAlignment={'start'}
layout={'default'}
enableEmptySections = {false}
showsHorizontalScrollIndicator = {false}
showsVerticalScrollIndicator={false}
inactiveSlideScale = {1}
inactiveSlideOpacity = {1}
removeClippedSubviews={false}
onSnapToItem={(index) => this.setState({ activeSlide: index }) }
></Carousel>
Same issue.
When I use phone ,it works ,but not works in emulator
same issue until now. Is there an update about this issue?
there have any update i have the same issue React: 16.8.4 React native: 0.59.10 react-native-snap-carousel: 3.8.0
Same here! Is there an update about this issue?
Same problem here!! This issue needs attention
Can one of you guys tell me if the bug occurs with version 3.7.5
of the plugin?
Just downgraded. The problem happens in the version 3.7.5
too
I am using version 3.7.5
too. This issue happened :(
I have this issue too, I noticed it works perfect if you scroll fast. If you do it slowly you will reach the end of the loop. Not sure why but just reporting my observations.
Anyone found a fix for this issue ?
I use the version 3.8.4 and face the same issue. Anyone found a solution?
same issue
3.9.0 same issue.
3.9.0 same issue.. Any updates on this issue ?
Same issue with full width slides
Same issue
Same issue
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
Same issues
Same issues
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。