meliorence / meliorence/react-native-snap-carousel
in iOS device loop not working
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Is this a bug report, a feature request, or a question?
bug
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 ([]).)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- 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?
not React Native bug
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
just iOS
Is the bug reproductible in a production environment (not a debug one)?
debug and release as same
Environment
Environment:
React: 16.11.0
React native: 0.62.2
react-native-snap-carousel: 3.8.4
Target Platform:
Android (6.0)
iOS (13.4.1)
Expected Behavior
loop set true need normal
Actual Behavior
just only loop twice, can't continue to slide
Reproducible Demo
<Carousel
sliderWidth={screenWidth}
sliderHeight={this.state.itemHeight}
itemWidth={this.state.itemWidth}
data={this.state.items}
renderItem={this._renderBanner.bind(this)}
firstItem={0}
hasParallaxImages={true}
inactiveSlideScale={0.932}
inactiveSlideOpacity={this.state.opacity}
loop={true}
autoplay={true}
autoplayDelay={500}
autoplayInterval={3000}
onSnapToItem={index => {
this.setState({
activeSlide: index
});
}}
/>
Steps to Reproduce
not steps
thx~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Carousel configuration and reproduce it on iOS 13.4.1 using React Native 0.62.2 and react-native-snap-carousel 3.8.4. The report names no source file or test; done means identifying why looped autoplay stops after two cycles and confirming that it continues sliding on iOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100