PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

dynamic tabs #304

Open aaron-barbieriaghib opened 1 year ago

aaron-barbieriaghib commented 1 year ago

It seems like when i dynamically set tabs according to an api call, when certain tabs get dynamically removed, the associated screens don't unmount correctly, and i get a bunch of blank screens that i can swipe through. It's almost as if Tabs.Container stores some internal memory of what tabs it contains and doesn't refresh. If i force a remount via key change on the Tabs.Container component everything works, but I'd like to avoid that since it causes a flicker and doesn't let me do animations. Is there a way to set tabs dynamically, or even force a remount of the tabs without remounting the header and TabBar? Some guidance on this would be much appreciated!

HanggiAnggono commented 1 year ago

+1

nica0012 commented 11 months ago

Anything on this?