android:navigator plugin push support singlePage flag and the default value is false

This commit is contained in:
pengfei.zhou
2020-09-01 17:41:14 +08:00
committed by osborn
parent 4e724ba922
commit e4351e3b00
4 changed files with 21 additions and 4 deletions

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

@@ -818,6 +818,7 @@ declare module 'doric/lib/src/native/navigator' {
alias?: string | undefined;
animated?: boolean | undefined;
extra?: object | undefined;
singlePage?: boolean | undefined;
} | undefined) => Promise<any>;
pop: (animated?: boolean) => Promise<any>;
openUrl: (url: string) => Promise<any>;

View File

@@ -4,6 +4,7 @@ export declare function navigator(context: BridgeContext): {
alias?: string | undefined;
animated?: boolean | undefined;
extra?: object | undefined;
singlePage?: boolean | undefined;
} | undefined) => Promise<any>;
pop: (animated?: boolean) => Promise<any>;
openUrl: (url: string) => Promise<any>;

View File

@@ -22,6 +22,7 @@ export function navigator(context: BridgeContext) {
alias?: string,
animated?: boolean,
extra?: object,
singlePage?: boolean,
}) => {
if (config && config.extra) {
(config as any).extra = JSON.stringify(config.extra)