portrait upside down doesn't work on iOS #22858
Labels
Bug
Platform: iOS
iOS applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Environment
Run
react-native info
in your terminal and paste its contents here.React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 47.43 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.9.0 - ~/.nvm/versions/node/v10.9.0/bin/node
npm: 6.2.0 - ~/.nvm/versions/node/v10.9.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 24, 25, 26, 27
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.3
System Images: android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.5 => 0.57.5
npmGlobalPackages:
react-native-cli: 2.0.1
Description
In a project that has all device orientations enabled in xcode (including "Upside Down"), when rotating the xcode simulator to upside down orientation, the app continues to render as if it has not changed orientation to upside down. The
onLayout
callback of aView
is also not called.Furthermore, if I get dimensions from
Dimensions.get('window')
when this rotation occurs (it's possible to detect the rotation occurring using the callback fromreact-native-orientation
, which does fire), dimensions reflect the previous orientation's values, rather than the expected values of portrait upside down (although if switching from portrait to upside down, they're coincidentally the same, but the values are inverted when switching from landscape to upside down).This seems like the same issues as this ticket
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
Demo: https://snack.expo.io/SJb5B3obE
The text was updated successfully, but these errors were encountered: