Ok to hide expensive Views in React Native?

142 views Asked by At

I know that setting "display none" instead of not rendering is kinda against React philosophy - still I have to ask:

Isn't that the proper way if my View is actually a expensive component?

In my case a react-native-charts-wrapper chart with almost 20k data points.

There are 3 charts and only one of them is showing each time (I can't reuse the same chart because they are different types - e.g. LineChart vs BarChart).

0

There are 0 answers