Skip to content

[BUG] False alarm of the listener when turning the phone from landscape to faceUp #90

Description

@p1d3c

Describe the bug
I recently noticed that if you turn the phone from landscape mode to faceUp, then during the transition the listener falsely thinks that the phone is in portrait mode.

To Reproduce
Steps to reproduce the behavior:

  1. Orientation === 4 - we are here
  2. Start tilting the phone away from you by turning it into faceUp mode. At about 30 degrees from the start point, the listener will indicate that the phone is in portrait mode.
  3. Turn the phone to faceUp mode and the listener outputs Orientation === 6
  4. See the unnecessary transition from landscape to portrait (landscape -> portrait -> faceUp)

Expected behavior
Listener doesnt indicate about portrait mode at point 2 (see steps to reproduce)

Screenshots

Smartphone (please complete the following information):

  • OS: Android
  • Device: Xiaomi Redmi 10s
  • Version Android 13

Environment
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Pro
Memory: 185.47 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.11.0
path: /usr/local/bin/node
Yarn: Not Found
npm:
version: 10.9.0
path: /usr/local/bin/npm
Watchman:
version: 2025.04.14.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/p1d3c/.rvm/rubies/ruby-2.7.6/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.26053.27.2432.13536105
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/p1d3c/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: 18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.2
wanted: 0.79.2
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions