-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
onLayout works differently in iPhone and iPad simulators #7504
Comments
This was also reported here #7340. I'm going to test this on iOS now. |
I've made a little research and it seems to be a iOS behaviour (bug). Made an empty app and with this code:
From my tests:
So it seems the first orientation change is not being set properly. Tested on XCode 7.3, iPhone and iPad both simulators. |
Note that, for #7340, I tested this on a physical iPhone 6s and a physical iPad Air 2 and got the same behavior so this is not just a simulator issue. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/onlayout-works-differently-in-iphone-and-ipad-simulators Product Pains has been very useful in highlighting the top bugs and feature requests: Also, if this issue is a bug, please consider sending a pull request with a fix. |
This might be an issue with the xCode but I am getting strange values for Dimensions.get('window'). In iPhone simulator it works as expected and shows the new values for height and width but using iPad simulator (iPad Air 2 and iPad Pro) I get the old height and width. This results in broken views as I try to fit the login screen to full page using margin for status bar and calculating the height of the keyboard.
The text was updated successfully, but these errors were encountered: