add hasNotch in global variable

This commit is contained in:
王劲鹏 2020-03-19 11:51:32 +08:00 committed by osborn
parent dad9dd7e9e
commit 126fa275b8
3 changed files with 4 additions and 0 deletions

1
doric-js/index.d.ts vendored
View File

@ -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
*/ */

View File

@ -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
*/ */

View File

@ -62,6 +62,8 @@ declare global {
statusBarHeight: number, statusBarHeight: number,
hasNotch: boolean,
/** /**
* ex:Apple or Google * ex:Apple or Google
*/ */