New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
material-top-tabs slow render #11490
Comments
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. |
Hey, this is related to the ongoing refactor of tab-view to address issues with poor performance when used together with material-top-tabs. If you want, a quick solution you can use I've created an RFC that describes the new approach here. The new API still needs some work, so I will keep this issue open until the release of a new version with the refactored API. |
Hi @okwasniewski, For now, I can wait improvements on material-top-tabs and react-native-tab-view relationships. Thanks |
I try react-native-tab-view without material-top-tabs but the problem is the same. Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-08-09.at.12.11.37.mp4I tried to encapsulate tabview navigator with a View to get onLayout prop and get a state to know when TabView is fully mounted before calling API. It's better than before but not fully clean. There are some milliseconds before the content of the TabView appears. is there no way to get onLayout prop on navigator? Thanks |
Getting Same issue after updating react native and react navigation |
Has anyone made progress on this? Getting the same issue on react native 0.73. Happens with v5 and v6. |
also get the same issue. |
Same issue after upgrading from react-native 0.71.7 to 0.73.8
|
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Current behavior
on mount, there are some milliseconds during which the material-top-tabs doesn't display.
On a fresh install, you can see it rapidly, but when on your screen, you have multiple API calls for example, this problem occurs for many seconds.
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-07-24.at.13.51.50.mp4
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-07-24.at.14.14.06.mp4
Expected behavior
Make it more efficient and maybe get a hook to know when tabs are fully mounted and displayed to know when to do greedy actions.
Reproduction
https://github.com/TomCorvus/RNNavigationSlowRender
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: