You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When playing video in fullscreen on iOS device and the device is rotated, the Dimensions listeners fire with wrong values. Same issue in useWindowDimensions, since that's just a wrapper. It's probably related to #29290
React Native version:
System:
OS: macOS 11.4
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 27.55 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.5.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.6.0 - /usr/local/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 23, 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.3, 29.0.2, 29.0.3
System Images: android-19 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.2 AI-202.7660.26.42.7351085
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_141 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Let's begin with device in portrait-UP
Press enlarge button to display the video in fullscreen
Rotate device to landscape-LEFT (listener sends update, but with portrait values)
Rotate device to portrait-UP (listener sends update, but with landscape values)
Rotate device to landscape-LEFT (listener sends update, but with portrait values)
Rotate device to portrait-DOWN (listener sends update, but with landscape values)
Rotate device to landscape-LEFT or RIGHT (listener updates with "correct" landscape values)
Rotate anywhere (listener will update with landscape values until you rotate the device to portrait-UP, then it follows logic from point 4)
Exit fullscreen mode
Rotate device (now listener sends correct values)
Simply put, when you rotate from portrait-UP to landscape, listeners update with portrait values. Rotation from any other orientation leads to landscape values.
Expected Results
Dimensions listeners notify with correct values.
Snack, code example, screenshot, or link to a repository:
Description
When playing video in fullscreen on iOS device and the device is rotated, the
Dimensions
listeners fire with wrong values. Same issue inuseWindowDimensions
, since that's just a wrapper. It's probably related to #29290React Native version:
Steps To Reproduce
Simply put, when you rotate from portrait-UP to landscape, listeners update with portrait values. Rotation from any other orientation leads to landscape values.
Expected Results
Dimensions listeners notify with correct values.
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: