PedroBern / react-native-collapsible-tab-view

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

feat: is it possible to prevent re-renders? #43

Closed alexpchin closed 3 years ago

alexpchin commented 3 years ago

WIP: Just an idea. Can we prevent unnecessary re-renders?

PedroBern commented 3 years ago

@alexpchin I reopened #41 and now I think it's going to really improve the performance. check out the new demo, it's super simple compared to the current implementation and much more bug-free. The downside is it does not come with a tab bar by default, but it's going to be super simple to provide a custom one.

This isn't my priority right now, but I'm going to try to update it in the next few days and make a reusable component.

I'm commenting here so maybe you don't waste too much time trying to improve the current implementation, preventing re-renders.

If you have something to add to the PR now or in the future, please let me know

alexpchin commented 3 years ago

Closing as this is v2 focused.