forked from Blendman974/faceclaw
Initial publishable release
This commit is contained in:
commit
6e442e7faa
120 files changed
+750769
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { EventData, Frame, Page } from "@nativescript/core";
|
||||
|
||||
import { hasCompletedOnboarding } from "./onboarding-state";
|
||||
|
||||
export function navigatingTo(args: EventData): void {
|
||||
const page = args.object as Page;
|
||||
page.on(Page.loadedEvent, () => {
|
||||
Frame.topmost()?.navigate({
|
||||
moduleName: hasCompletedOnboarding() ? "main-page" : "onboarding-page",
|
||||
clearHistory: true,
|
||||
animated: false,
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user