react-native-collapsible-tab-view icon indicating copy to clipboard operation
react-native-collapsible-tab-view copied to clipboard

switching between tabs is very slow to react , while sliding between tabs is smooth

Open yadavmurari111 opened this issue 3 years ago • 2 comments

I'm having a issue in switching the tabs, when i am sliding between tabs they are fine but when i press on a particular tab the performance is very slow and animation on the tabs is also slow.video is also attached in reference of the issue. Please help me out.

MicrosoftTeams-image (3)

yadavmurari111 avatar Jun 14 '22 07:06 yadavmurari111

Which version are you running? Try the latest 5.0 RC.

This problem is usually related to memoization in your components. They're probably rendering too often. Try logging your rerenders and see if you can add React.memo or useMemo.

andreialecu avatar Jun 14 '22 07:06 andreialecu

"react-native-collapsible-tab-view": "^5.0.0-rc.13", --> i am running on this version . I will try to use useMemo

yadavmurari111 avatar Jun 14 '22 10:06 yadavmurari111