add hasNotch in global variable
This commit is contained in:
parent
dad9dd7e9e
commit
126fa275b8
1
doric-js/index.d.ts
vendored
1
doric-js/index.d.ts
vendored
@ -51,6 +51,7 @@ declare module 'doric/lib/src/runtime/global' {
|
|||||||
screenWidth: number;
|
screenWidth: number;
|
||||||
screenHeight: number;
|
screenHeight: number;
|
||||||
statusBarHeight: number;
|
statusBarHeight: number;
|
||||||
|
hasNotch: boolean;
|
||||||
/**
|
/**
|
||||||
* ex:Apple or Google
|
* ex:Apple or Google
|
||||||
*/
|
*/
|
||||||
|
1
doric-js/lib/src/runtime/global.d.ts
vendored
1
doric-js/lib/src/runtime/global.d.ts
vendored
@ -37,6 +37,7 @@ declare global {
|
|||||||
screenWidth: number;
|
screenWidth: number;
|
||||||
screenHeight: number;
|
screenHeight: number;
|
||||||
statusBarHeight: number;
|
statusBarHeight: number;
|
||||||
|
hasNotch: boolean;
|
||||||
/**
|
/**
|
||||||
* ex:Apple or Google
|
* ex:Apple or Google
|
||||||
*/
|
*/
|
||||||
|
@ -62,6 +62,8 @@ declare global {
|
|||||||
|
|
||||||
statusBarHeight: number,
|
statusBarHeight: number,
|
||||||
|
|
||||||
|
hasNotch: boolean,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ex:Apple or Google
|
* ex:Apple or Google
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user