mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
10 lines
432 B
TypeScript
10 lines
432 B
TypeScript
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 })
|
|
}
|