snapToItem(0, (animated = false)) snaps to SECOND item.
See original GitHub issueCant snap to first item.
this._carousel.snapToItem(0, (animated = true));
snaps to second one.
And this._carousel.snapToItem(1, (animated = true));
snaps to third one.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
snapToItem(0, (animated = false)) snaps to SECOND item. #199
Cant snap to first item. this._carousel.snapToItem(0, (animated = true)); snaps to second one. And this._carousel.snapToItem(1, (animated ...
Read more >React native - how to set this state with hooks instead of 'this ...
Am new to the logic of hooks and need some clarity. Im using this library https://github.com/archriss/react-native-snap-carousel and setting up ...
Read more >react-native-snap-carousel/CHANGELOG.md - UNPKG
This allows implementing custom animations and layouts (see [the dedicated ... 30, * Fix `snapToItem` call that results in snapping to the wrong...
Read more >Building a Smooth Image Carousel with FlatList in React Native
Carousels consolidate items within a single horizontally rotating widget. Users can scroll through items by dragging across right or left to ...
Read more >react-native-snap-carousel - npm
Swiper/carousel component for React Native with previews, multiple layouts, parallax images, performant handling of huge numbers of items, ...
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
@bd-arc
for me
(animated = true)
worked but when I used(animated = false)
it returns to previous image I don’t know why I think this bug still present in the library