thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[Question] does useTheme hook recalculate its functions? #346

Closed minminzaw closed 1 year ago

minminzaw commented 1 year ago

Does useTheme hook recreate and calculate its functions every time we use it in Components? If yes, does this heavy calculation cause performance issues?

JeremyDolle commented 1 year ago

I don't made any stress test on that feature. We've made some production apps with this boilerplate and don't have any issue with the useTheme hook.

The question is very interesting by the way. I will investigate some times to look at it.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.