[feature request] Add orientation change listener
SpaghettiC0des opened this issue · comments
Hi, please add a utility or a container component to recalculate the dimensions when the device orientation change.
Hey @karlmarxlopez, not sure how will this help?
StyleSheets are static, meaning changing the formulas won't make a difference in the already calculated sizes.
I also prefer they would stay static when using this lib due to performance.
If you'd like to use different styles for different orientation I suggest you implement your own listener and make your StyleSheets dynamic (create it inside the render).
Though I must say, a good design should handle both landscape and portrait with the same styles (using flex, etc..).