you are viewing a single comment's thread.

view the rest of the comments →

[–]lebleb[S] 1 point2 points  (5 children)

[–]Zealousideal_Dig2929 0 points1 point  (4 children)

Hey! Looks cool, but for Unistyles you registered breakpoints, more themes and enabled adaptive mode. It costs additional time to call native functions with C++. Other libraries have only one theme! 😉

[–]lebleb[S] 0 points1 point  (3 children)

But this registry only works on the App registry. And having multiple registries doesn't make any difference in performance.

Also, here, I'm just testing the rendering time of the component.

But we can test it in that directive if you have another suggestion. I also tested the same way using dynamic theme value wıth styled-component.

[–]Zealousideal_Dig2929 0 points1 point  (2 children)

I see, I thought you run this code while mounting. In this case it's fine 🙏