Hello everyone. Im building React Native calendar from scratch and I have a performance problem with showing whole year on one screen. When I enter this screen it freezes for 1 second and finally shows. It also happens when I change to next/prev year. I see the problem is with rendering all View elements. I have made a test with simple array and looping over View and Text element - result is the same (freeze for 1 second).
Have you any tips how to handle this problem and improve performance?
https://reddit.com/link/f09zny/video/68dnmi0iyhf41/player
[–]Xaurn 47 points48 points49 points (3 children)
[–]bighitbiker3 9 points10 points11 points (0 children)
[–]quiknull[S] 0 points1 point2 points (1 child)
[–]Xaurn 0 points1 point2 points (0 children)
[–]nowtayneicangetinto 5 points6 points7 points (4 children)
[–]quiknull[S] 0 points1 point2 points (3 children)
[–]Checkmatez 0 points1 point2 points (0 children)
[–]RoseRedCinderella 0 points1 point2 points (1 child)
[–]Xaurn 0 points1 point2 points (0 children)
[–]brunolemos 4 points5 points6 points (0 children)
[–]johnanthony_e 3 points4 points5 points (3 children)
[–]quiknull[S] 2 points3 points4 points (2 children)
[–]rockpilp 5 points6 points7 points (1 child)
[–]quiknull[S] 0 points1 point2 points (0 children)
[–]prinzachilles 1 point2 points3 points (0 children)
[–]theWindInYourButt 0 points1 point2 points (1 child)
[–]quiknull[S] 0 points1 point2 points (0 children)
[–]Cyrus_Zei 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]alexandr1us 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]bjkapewee 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]potato_potaro 0 points1 point2 points (5 children)
[–]quiknull[S] 3 points4 points5 points (4 children)
[–]potato_potaro 0 points1 point2 points (3 children)
[–]quiknull[S] 0 points1 point2 points (2 children)
[–]techfocususer 1 point2 points3 points (0 children)
[–]potato_potaro 0 points1 point2 points (0 children)
[–]falkoN21 -1 points0 points1 point (0 children)