kkemple / kkemple/react-native-sideswipe
Offset is ignored on first render when currentIndex != 0
- Dominant language
- JavaScript
- Stars
- 900
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
When I set the currentIndex = 1, the offset is not applied until the sideswipe is interacted with. Setting the currentIndex = 0 works correctly.
First load (incorrect):

After Interaction (correct):

Thank you!
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the first-render case with currentIndex set to 1 and an offset, then inspect the initial render path in the carousel component. Compare it with the state update triggered by sideswipe interaction; done means the offset is applied on the first render without requiring interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100