Tomáš Horňák

Results 2 comments of Tomáš Horňák

This would be nice feature, otherwise I'm little bit afraid to use it in production on high-load web servers. Did you come to any solution @theblazehen ?

1) In that case I would write useState hook this way: ``` const [orientation, setOrientation] = useState(() => { const screen = Dimensions.get("screen"); return { portrait: isOrientationPortrait(screen), landscape: isOrientationLandscape(screen), };...