leecade / leecade/react-native-swiper
setState inside onMomentumScrollEnd
Open
Nobody has claimed this yet.
question
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Using this.setState inside onMomentumScrollEnd scroll back to the first slide.
Any idea on why this happens?
Cheers
Contributor guide
No contributing guide indexed for this repository
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 setState behavior in onMomentumScrollEnd using the react-native-swiper component. Trace the scroll callback and state transition that follows, then confirm the cause with a minimal reproduction; done means the callback no longer returns the swiper to the first slide or the issue is documented as expected behavior.
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
- 25/100