snapToItem bug
See original GitHub issuewhen I use snapToItem(index, false)
with X > 3, It was usually return me to my Index then turn back to Index 0. I don’t know why?, I don’t add any props
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Snap Carousel snapToItem bug Android - Snack
Snap Carousel snapToItem bug Android. No description. Open with Expo Go. Open in editor. Need Expo? Don't have the Expo Go? Download the...
Read more >react-native-snap-carousel/CHANGELOG.md - UNPKG
30, * Fix `snapToItem` call that results in snapping to the wrong item when `loop` is ... 157, * Prevent error when carousel...
Read more >[#QTBUG-64496] SnapToItem in ListView not correct - Qt Bug Tracker
Please look a the screenshot I've attached. There are two ListViews with rectangles. For both ListViews snapMode is SnapToItem. On the left everything...
Read more >archriss - Bountysource
Is this a bug report, a feature request, or a question? ... snapToItem/snapToNext not working on Android devices when called from callbacks inside...
Read more >React Native Snap Carousel - First Item - Stack Overflow
310 : 332} firstItem={22} initialScrollIndex={23} onLayout={() => { this._carousel.snapToItem(22); }} />. react-native · react-native-snap- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are facing : it would snap to 0 slide when you are trying to snap to position x
simply add prop:
getItemLayout
to calculate offset.example:
Update
I changed the snapToItemFunction to:
And the above code seems to work properly. However it does interfere with the snapToNext() and snapToPrevious methods