android:custimze Environment

This commit is contained in:
pengfei.zhou
2020-01-10 14:56:51 +08:00
committed by osborn
parent ade6d63479
commit b9a2065f8a
5 changed files with 329 additions and 308 deletions

View File

@@ -22,7 +22,7 @@ export type BridgeContext = {
declare global {
const context: BridgeContext
const Environment: {
platform: "Android" | "iOS" | "Qt" | "h5",
platform: "Android" | "iOS" | "Qt" | "web",
platformVersion: string,
@@ -36,6 +36,7 @@ declare global {
screenHeight: number,
[index: string]: number | string | boolean | object | undefined
}
function Entry(constructor: { new(...args: any[]): {} }): any
}