Closed nastarfan closed 5 years ago
Please upgrade to the latest version which should have improved performance #720
even loading the tabs takes ages.
In the example, there are 120 tabs being rendered, and even if you're not rendering the screens itself, the tabbar still has to render all of the route labels. If you don't render the tab bar, there's no issue with performance from what I tested.
You can re-implement the tabbar to fit your use case. The default tab bar is not made for such a huge amount of routes.
Please reopen. I have the same issue after upgrade to the latest version. The new default TabBarItem take a very long time to render.
Here's some performance tracking of the same code, rendering 50 routes
https://snack.expo.io/@dhl1402/react-native-tabview-reproduce-repo
hey @dhl1402 did you find a solution to optimise tabbar time to mount ?
Current behaviour
Trying to use it to make dynamic tabs based on data provided in a quite big array (120 entries of data), but having performance issues when loading the tab view and switching between tabs.
Expected behaviour
I've read and followed and expected it to be performant but even loading the tabs takes ages.
Code sample
Here's a code to reproduce the issue
What have you tried
It works well with small number of data, like 5, but once it gets bigger it becomes very laggy. I've tried to improve the performance by following provided tips, but can't really achieve tolerable performance
Your Environment