You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
when routes array changes, the indicator and label state in the tab bar get out of sync with the scene being rendered. it looks like the tab bar renders the tab at index 0 as active (with active label and indicator at that position), even though the scene being rendered is at a different index.
dynamicTabs.mov
Expected behavior
when routes change, the rendered scene and active tab ui (indicator and label state) should stay in sync, that is to say, the tab for the rendered scene should have the active state ui and the tab bar indicator should be in the correct position.
if you are using 3+ version then you are using react-native-view-pager
open PagerViewAdapter.tsx from this lib and try to adjust this function (see position and offset values are reset to selected page)
Current behavior
when routes array changes, the indicator and label state in the tab bar get out of sync with the scene being rendered. it looks like the tab bar renders the tab at index 0 as active (with active label and indicator at that position), even though the scene being rendered is at a different index.
dynamicTabs.mov
Expected behavior
when routes change, the rendered scene and active tab ui (indicator and label state) should stay in sync, that is to say, the tab for the rendered scene should have the active state ui and the tab bar indicator should be in the correct position.
Reproduction
https://snack.expo.dev/@reachvote/react-native-tab-view-dynamic-tabs-bug
Platform
Environment
The text was updated successfully, but these errors were encountered: