diff --git a/packages/core/platform/index.android.ts b/packages/core/platform/index.android.ts index 56db49cec..00f2ed1a0 100644 --- a/packages/core/platform/index.android.ts +++ b/packages/core/platform/index.android.ts @@ -57,6 +57,10 @@ export class Screen { static mainScreen = new MainScreen(); } +export class screen { + static mainScreen = Screen.mainScreen; +} + class DeviceRef { private _manufacturer: string; private _model: string; @@ -144,6 +148,7 @@ class DeviceRef { } export const Device = new DeviceRef(); +export const device = Device; export const isAndroid = global.isAndroid; export const isIOS = global.isIOS; diff --git a/packages/core/platform/index.ios.ts b/packages/core/platform/index.ios.ts index ef1de6bc1..48ad6b8a4 100644 --- a/packages/core/platform/index.ios.ts +++ b/packages/core/platform/index.ios.ts @@ -119,9 +119,17 @@ class MainScreen { export const Device = new DeviceRef(); +// This retains compatibility with NS6 +export const device = Device; + export class Screen { static mainScreen = new MainScreen(); } +// This retains compatibility with NS6 +export class screen { + static mainScreen = Screen.mainScreen; +} + export const isAndroid = global.isAndroid; export const isIOS = global.isIOS;