meliorence / meliorence/react-native-snap-carousel
Perform report
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?
question
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 sure
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
iOS tested
Is the bug reproductible in a production environment (not a debug one)?
yes
Environment
Environment:
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-snap-carousel": "^3.8.0",
Target Platform:
iOS (12.2)
Expected Behavior
(Write what you thought would happen.)
Actual Behavior
(Write what happened. Add screencasts/screenshots!)
Reproducible Demo
(Paste the link to a Snack example in which the issue can be reproduced. Please follow the guidelines for providing a Minimal, Complete, and Verifiable example.)
Steps to Reproduce
Hi, i use carousel in modal, and i would after modal opened, i scroll to specific item, but, it didn't because its realy slow action.
<Modal
visible={this.state.modalStoryVisible}
style={{padding:0, margin:0}}
transparent={true}
animationType="slide"
>
<Carousel
ref={(c) => this._carouselStory = c}
data={this.state.favoris}
renderItem={this.renderModalCarrousel.bind(this)}
initialNumToRender={this.state.favoris.length}
firstItem={this.state.activeIndex}
sliderWidth={width}
itemWidth={width}
layout={'default'}
onSnapToItem={(activeIndex) => {
this.setState({activeIndex:activeIndex});
}}
/>
</Modal>
I would like use initialNumToRender={1} and firstItem={27}, but don't scroll to. I think because listView no render all. how can I do ?
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 by reproducing the reported Modal and Carousel configuration with initialNumToRender={1}, firstItem={27}, and the supplied React Native versions. Read the Carousel documentation and implementation for firstItem, initialNumToRender, and scrolling behavior. Done means establishing whether the requested item can be reached promptly and documenting or fixing the behavior with a reproducible example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100