Files
NativeScript/tests/app/livesync/livesync-modal-view-page.ts
Vladimir Amiorkov 9877b202cd fix(hmr): close modal views during livesync #7668 (#7679)
chore: add unit tests to test that modal views are closed during hmr
2019-08-15 15:32:17 +03:00

16 lines
482 B
TypeScript

import { View, ShowModalOptions } from "tns-core-modules/ui/core/view";
const LIVESYNC_FOLDER = "livesync/";
const buttonPageModuleName = `${LIVESYNC_FOLDER}livesync-button-page`;
export function onLoaded(args) {
const view = args.object as View;
let options: ShowModalOptions = {
context: "context",
closeCallback: () => console.log("modal view closeCallback raised."),
animated: false
};
view.showModal(buttonPageModuleName, options);
}