forked from Blendman974/faceclaw
Porting onboarding/flashing flow io iOS
This commit is contained in:
1 parent
68b459751e
commit
64bf600ef9
46 files changed
+1419
-211
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { Frame } from '@nativescript/core'
|
||||
|
||||
/** Return to the existing iOS controller after a devices/firmware detour. */
|
||||
export function finishOnboardingNavigation(): void {
|
||||
const frame = Frame.topmost()
|
||||
const main = global.isIOS && frame?.backStack.find(entry => entry.entry.moduleName === 'phone-ui/main-page')
|
||||
if (main) frame.goBack(main)
|
||||
else frame?.navigate({ moduleName: 'phone-ui/main-page', clearHistory: true })
|
||||
}
|
||||
Reference in new issue
Block a user