-
Notifications
You must be signed in to change notification settings - Fork 811
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
After rotation Dimensions remain the same #3
Comments
@navy1978 this is because the Dimensions module doesn't update when the orientation changes. I think the RN team is working on this to make it better. |
As a temporary solution:
Of course, no more |
You can use the onLayout event to resolve this issue. I will close this issue now. |
i've use this code to get the correct height/width after rotation.
|
Hi The dimension of the page is not affected by the rotation, so for example calling this in Landscape:
Dimensions.get('window').height has the same result of calling it in Portrait
The text was updated successfully, but these errors were encountered: