wix / wix/react-native-ui-lib

TabController asCarousel not changing selected index on swipe

Open
#1,812 3 comments 1 reaction 1 assignee View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.