Files
NativeScript/tests/app/livesync/livesync-modal-view-page.ts
Nathan Walker 6336eac4b5 chore: cleanup
2020-07-11 11:03:37 -07:00

16 lines
471 B
TypeScript

import { View, ShowModalOptions } from "@nativescript/core";
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);
}