meliorence / meliorence/react-native-snap-carousel
snapToItem/snapToNext not working on Android devices when called from callbacks inside step
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?
Bug report
### Have you followed the required steps before opening a bug report?
- [x] I have read [the guidelines regarding bug report](https://github.com/archriss/react-native-snap-carousel/blob/master/CONTRIBUTING.md).
- [x] I have reviewed [the documentation](https://github.com/archriss/react-native-snap-carousel/blob/master/README.md) in its entirety, including the dedicated documentations :books:.
- [x] I have searched for [existing issues](https://github.com/archriss/react-native-snap-carousel/issues) and made sure that the problem hasn't already been reported.
- [x] I am using [the latest plugin version](https://github.com/archriss/react-native-snap-carousel/releases).
- [x] I am following [the issue template](https://raw.githubusercontent.com/archriss/react-native-snap-carousel/master/ISSUE_TEMPLATE.md) closely in order to produce a useful bug report.
### Have you made sure that it wasn't a [React Native bug](https://github.com/archriss/react-native-snap-carousel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22react-native+bug%22+)?
Yes
### Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Android only.
### Is the bug reproductible in a production environment (not a debug one)?
I think so.
### Environment
Expo with v33 SDK
### Expected Behavior
It should go to specified page or to the next.
### Actual Behavior
On iOS device it is working fine, but on Android nothing happens.
### Reproducible Demo
https://snack.expo.io/SJxF4GwlB
### Steps to Reproduce
1. Run on Android
2. Try to snapToItem from inside single page view.
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 with the linked Expo Snack demo, running it on Android with Expo SDK 33 and comparing the callback behavior with iOS. Trace calls to snapToItem and snapToNext from callbacks inside the single-page step; done means the specified page or next page changes on Android as it already does on iOS.
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
- Mostly clear
- Newbie friendliness
- 25/100