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
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.kt
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -42,21 +42,22 @@ internal class DeviceInfoModule(reactContext: ReactApplicationContext) :
42
42
43
43
val activity = reactApplicationContext.currentActivity ?:return windowDisplayMetrics
44
44
val bounds =WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(activity).bounds
45
-
var width = bounds.width()
46
-
var height = bounds.height()
47
45
48
-
// WindowMetrics bounds include system bars. When edge-to-edge is not enabled, we subtract them
49
-
// so that window dimensions reflect the usable content area.
0 commit comments