meliorence / meliorence/react-native-snap-carousel
Carousel in react-native-tabview flickers on tab change
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Do we still need this code?
I am using Carousel in react-native-tab-view, and Carousel flickers on tab change.
Green pane is react-native-tab-view, and Red pane is Carousel.

When I remove requestAnimationFrame, it works fine.
By the way, what is hideCarousel for?
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 at src/carousel/Carousel.js around line 187 and inspect the requestAnimationFrame logic and the hideCarousel usage. Reproduce the flicker by using Carousel inside react-native-tab-view, then compare behavior with requestAnimationFrame removed. Done means the tab change no longer flickers while the intended purpose of hideCarousel remains clear.
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
- Needs clarification
- Newbie friendliness
- 25/100