A framework for building native applications using React
replace getWindowDisplayMetrics with getScreenDisplayMetrics (#53523)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53523 update `DisplayMetricsHolder.getWindowDisplayMetrics()` to `getScreenDisplayMetrics()`. Where window width and height is not needed, prefer to use `screenDisplayMetrics` as with upcoming diff `windowDisplayMetrics` initialization only happen using UiContext and have potential to cause more issues if used unnecessarily. Changelog: [Internal] Update `DisplayMetricsHolder.getWindowDisplayMetrics()` to use `.getScreenDisplayMetrics()` --- Reviewed By: mlord93 Differential Revision: D81270196 fbshipit-source-id: 5b392d67449ddceebbc0fe81db15fa61ae44108f
A
Alan Lee committed
1ad2ec099ac0ccc7402c37783004fbad3dbe0484
Parent: a4581ec
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 8/29/2025, 7:21:57 PM