Closed alexpchin closed 3 years ago
How to get the currently focused tab from refMap, previously you could use navigationState.index? How to listen to the change of the tab? (Connected to above)
onIndexChange
prop, here, and the imperative ref handler here, maybe we can add more methods to it, like currectTab: () => focusedTab .value
and currentIndex: () => index.value
navigationState.index
?If you want to conditionally display content based on the current tab, or you just want to know for some logic which tab is currently focused, you used to be able to work this out from
navigationState
.