mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: Application barrel changes without breaking changes (#10311)
This commit is contained in:
@@ -438,7 +438,7 @@ export class ApplicationCommon {
|
||||
});
|
||||
}
|
||||
|
||||
get orientation(): 'portrait' | 'landscape' | 'unknown' {
|
||||
orientation(): 'portrait' | 'landscape' | 'unknown' {
|
||||
return (this._orientation ??= this.getOrientation());
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ export class ApplicationCommon {
|
||||
});
|
||||
}
|
||||
|
||||
get systemAppearance(): 'dark' | 'light' | null {
|
||||
systemAppearance(): 'dark' | 'light' | null {
|
||||
// return cached value, or get it from the platform specific override
|
||||
return (this._systemAppearance ??= this.getSystemAppearance());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user