mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(e2e/modal-navigation): stretch modal tab view (#5548)
Update application with https://github.com/NativeScript/NativeScript/pull/5496.
This commit is contained in:
@@ -42,11 +42,17 @@ export function onModalPage(args: EventData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function onModalTabView(args: EventData) {
|
export function onModalTabView(args: EventData) {
|
||||||
|
const fullscreen = false;
|
||||||
|
const animated = false;
|
||||||
|
const stretched = true;
|
||||||
|
|
||||||
const view = args.object as View;
|
const view = args.object as View;
|
||||||
view.showModal("modal-tab/modal-tab-root",
|
view.showModal("modal-tab/modal-tab-root",
|
||||||
{ frameless: true },
|
{ frameless: true },
|
||||||
() => console.log("home-page modal tabview closed"),
|
() => console.log("home-page modal tabview closed"),
|
||||||
false);
|
fullscreen,
|
||||||
|
animated,
|
||||||
|
stretched);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function onNavigate(args: EventData) {
|
export function onNavigate(args: EventData) {
|
||||||
@@ -57,5 +63,5 @@ export function onNavigate(args: EventData) {
|
|||||||
|
|
||||||
export function onRootViewChange() {
|
export function onRootViewChange() {
|
||||||
let rootView = application.getRootView();
|
let rootView = application.getRootView();
|
||||||
rootView instanceof Frame ? application._resetRootView({moduleName: "tab-root"}) : application._resetRootView({moduleName: "app-root"});
|
rootView instanceof Frame ? application._resetRootView({ moduleName: "tab-root" }) : application._resetRootView({ moduleName: "app-root" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user