Skip to content

Dimensions do not reliably update after orientation change on iPadOS in v0.76.0 #47262

Description

@mhoran

Description

After upgrading to 0.76.0 I found that Dimensions do not update reliably after orientation change on iPad. This seems to be the root cause of #47251.

This was not an issue in 0.75.0 but I have not been able to trace down the breaking commit.

Steps to reproduce

  1. Install the application on an iPad simulator with yarn ios
  2. Note the correct dimensions displayed
  3. Change the screen orientation
  4. Note dimensions do not change
  5. On subsequent orientation change, sometimes dimensions do update, but not reliably
  6. Note that dimensions will update if app is sent to the background

React Native Version

0.76.0

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.7
  CPU: (16) arm64 Apple M3 Max
  Memory: 2.53 GB / 48.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.4
    path: /opt/homebrew/Cellar/node@18/18.20.4_1/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.7.0
    path: /opt/homebrew/Cellar/node@18/18.20.4_1/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0-alpha.2
    wanted: 15.0.0-alpha.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: 0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

None

Reproducer

https://github.com/mhoran/stale-dimensions-repro

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions