-
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
Portrait screen orientation is not locked properly on Android 8.1 #23083
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists. The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running |
I have this issue. React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 90.45 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v10.15.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:
Build Tools: 23.0.1, 23.0.2, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3
API Levels: 16, 21, 22, 23, 24, 25, 26, 27
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5264788
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
@types/react: ^16.8.3 => 16.8.3
@types/react-native: ^0.57.36 => 0.57.36
react: 16.8.2 => 16.8.2
react-native: 0.57.8 => 0.57.8 ext {
compileSdkVersion = 27
targetSdkVersion = 26
buildToolsVersion = "27.0.3"
supportLibVersion = "27.1.1"
googlePlayServicesVersion = "11.8.0"
androidMapsUtilsVersion = "0.5+"
} |
Have upgraded React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 64.19 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.8.0 - ~/.nvm/versions/node/v10.15.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:
Build Tools: 23.0.1, 23.0.2, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3
API Levels: 16, 21, 22, 23, 24, 25, 26, 27
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5264788
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
@types/react: ^16.8.3 => 16.8.3
@types/react-native: ^0.57.36 => 0.57.36
react: 16.8.2 => 16.8.2
react-native: 0.58.5 => 0.58.5 |
I've followed the exacts same step as the video and the bug doesn't occur on my side so we'll close this issue. Tested on android 8.0, with your repro folder. |
In the title of this issue - "... on Android 8.1" |
Environment
Description
Preconditions:
android:screenOrientation="portrait"
Linking.openURL('https://www.google.com/maps/dir/api=1&travelmode=driving&origin=10,11&destination=12,11');
Steps:
Actual result: 3 rotations before we will see proper portrait screen orientation.
Expected result: one rotation directly in portrait screen orientation without others.
Repo with this bug: https://github.com/andrej-kuznetsov/screenRotationRNBug
Reproducible Demo
Follow above instructions or this video: https://drive.google.com/open?id=1Y989iGoFLu4PZUcKvuBSiS4Wiwv_At1p
The text was updated successfully, but these errors were encountered: