react-native-collapsible-tab-view icon indicating copy to clipboard operation
react-native-collapsible-tab-view copied to clipboard

`tabName` is wrong for 3+ tabs

Open ivanichoo opened this issue 2 years ago • 1 comments

Hello,

I think there might be a bug regarding data.tabName on onTabChange props when there are more than 2+ tabs.

Considering ABC Tabs, when I click from A to C, tabName is B instead of C :

{ prevIndex: 0, index: 1, prevTabName: 'A', tabName: 'B' }

Is it a known bug ?

My goal is to set an active label only when clicked when there are more than 3 tabs. (Current behavior chains A, B, C to active from A to C)

Thank you !

ivanichoo avatar Aug 16 '23 13:08 ivanichoo

hi team, I'm facing the same problem.

While I clicked from Tab_A to Tab_C, I received two of events

{ prevIndex: 0, index: 1, prevTabName: 'Tab_A', tabName: 'Tab_B' }
{ prevIndex: 1, index: 2, prevTabName: 'Tab_B, tabName: 'Tab_C' } 

I think that it seems scroll to Tab_B first, then scroll to Tab_C. Please help to look, thanks!

starlitya avatar Oct 17 '23 07:10 starlitya