forked from Blendman974/faceclaw
Refactor (move some files around)
This commit is contained in:
1 parent
bcb162ecaf
commit
ef6cb3bf55
13 files changed
+10
-10
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() ? "phone-ui/main-page" : "phone-ui/onboarding-page",
|
||||
clearHistory: true,
|
||||
animated: false,
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user