TabController asCarousel not changing selected index on swipe
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 748
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 1
Description
Description
I've tried following the sample here to create a TabController with asCarousel={true} and I can swipe to change pages, but the selected item on the TabBar remains the same and onChangeIndex isn't called when swiping. It works fine when clicking on the tab bar items.
Related to
Expected behavior
As I swipe to different pages in the TabController the selected tab should change to the page I'm swiping to.
Actual behavior
The selected tab doesn't change.
Screenshots/Video
https://imgur.com/a/T9Iy2kW
The visual glitches are from the GIF recording.
Environment
- React Native: 0.64.3
- React Native UI Lib: ^6.8.1
Affected platforms
- Android
Not tested on iOS and Web
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.
Assessment
This issue has not been assessed yet.