Porting onboarding/flashing flow io iOS

This commit is contained in:
James Babcock committed 2026-09-19 09:19:26 -07:00
1 parent 68b459751e
commit 64bf600ef9
46 files changed
+1419 -211

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { NavigatedData, Page } from "@nativescript/core";
import { ConfigViewModel } from "./config-view-model";
export function navigatingTo(args: NavigatedData): void {
const page = args.object as Page;
// Preserve the model across back-navigation (returning from the firmware
// check page) so the onboarding "Continue" flow isn't lost.
if (!page.bindingContext) {
const context = (args.context as { onboarding?: boolean } | undefined) ?? undefined;
page.bindingContext = new ConfigViewModel({ onboarding: context?.onboarding ?? false });
}
}