refactor: circular deps part 8

This commit is contained in:
Nathan Walker
2025-07-08 22:55:03 -07:00
parent 779def7609
commit 50cfd6fb25
12 changed files with 126 additions and 133 deletions

View File

@ -1,4 +1,4 @@
import { ios } from '../../utils';
import { getWindow } from '../../utils/ios-helper';
class MainScreen {
private _screen: UIScreen;
@ -6,7 +6,7 @@ class MainScreen {
private get screen(): UIScreen {
if (!this._screen) {
// NOTE: may not want to cache this value with SwiftUI app lifecycle based apps (using NativeScriptViewFactory) given the potential of multiple scenes
const window = ios.getWindow();
const window = getWindow() as UIWindow;
this._screen = window ? window.screen : UIScreen.mainScreen;
}