meliorence / meliorence/react-native-snap-carousel
Snapping get stuck when RTL forced. (with video)
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?
(Check the step you've followed - replace the space character between the square brackets ([]) by an x.)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn't a React Native bug?
yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
IOS Only.
Is the bug reproductible in a production environment (not a debug one)?
reproductible
Environment
Environment:
React: 16.5.0
React native: 0.31.01
react-native-snap-carousel: 3.7.5
Target Platform:
Android (6.0)
iOS (10.3)
Expected Behavior
snapping between items after i18manager.forceRTL(true) should work as expected
Actual Behavior
after RTL is forced, around snapping item on index 8, is flickering and not allowing to snap to the next item.
no console errors, no logs, no-re render.
working great on non RTL environment.
Demo Video
Steps to Reproduce
(Write your steps so that anyone can reproduce the issue in the Snack demo you provided.)
- i18manager.forceRTL(true);
- call carousel with list larger than 10 items
- try to snap after item 7
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 by reproducing the issue with React Native's forceRTL setting, a carousel containing more than 10 items, and snapping after item 7; compare the iOS behavior with the linked demo video. Trace the carousel behavior around index 8 and verify that RTL mode can advance to the next item without flickering or becoming stuck.
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
- 35/100