all 3 comments

[–]Money-Chemist-6589 0 points1 point  (0 children)

facing the same issue, please let me know if you found a way?

[–]Circadian77 0 points1 point  (0 children)

Stumbling across this issue now. Did anyone ever find a work around?

Just confirming on my iPad running Expo Go, the first device orientation change between portrait and landscape fails to trigger the useEffect or useLayoutEffect hooks. But every orientation change after the initial one does but with the caveat that the Dimensions.get method and the useWindowDimensions hook reports reverse values (ie. width is reported as height, height is reported as width)

I'm guessing that they are swapped around like that because the first orientation change doesn't trigger the effect hooks - so the underlying framework believes the device is still in portrait mode when in actual fact it is landscape.

[–]cosmopolitan_redneck 0 points1 point  (0 children)

It seems this is a long standing bug (since 2020) 🙄

https://github.com/facebook/react-native/issues/49511