New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useDeviceOrientation screen bug #202
Comments
I have the same issue was working fine until i upgrade to RN 0.63. We previously had RN version 0.62.2 |
that seems a RN bug not the hooks |
I can confirm that Dimensions are not updating on orientation change in RN 0.63, with or without use of useDeviceOrientation hook. If you downgrade to 0.62.2 it works as intended. |
I hit this issue too. Looks like this hook is using the 'screen' dimensions. I was able to work around it by making my own hook based on the 'window' dimensions. |
Hi, I have issue with useDeviceOrientation() it does not return current orientation of my device and android emulator. How can i fix it? |
The fastest fix is to use
|
Thanks for the input!
|
hello, I'll have a time next week to work on this, I'll try to fix |
I just tested with the version |
@montagnev thank you for testing this! ❤️ |
I'm using the version |
Bug report
Summary
Environment info
react-native info
output:# "react-native": "^0.63.2",
Library version: ^2.6.0
orientation.landscape is always false when change orientation
The text was updated successfully, but these errors were encountered: