undefinedfix
Sign in

React native sliding tab. How to optimize the performance when there are many tabs?

zephyr edited in Thu, 22 Dec 2022

At present, react native scroll tab is used- viewhttps://github.com/ptomasroos...

Each sub page loads different data, but the sub page only has different data, and the rendering structure is the same. What is the idea to optimize the performance?

It's written like this at the moment, but it's a bit of a card

<ScrollableTabView>
 {tabView.map(item => <Page />)}
</ScrollableTabView>
1 Replies
cashsavings
commented on Thu, 22 Dec 2022

https://github.com/ptomasroos... Using prerenderingsiblingsnumber can achieve the effect similar to lazy loading