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
@@ -1,4 +1,4 @@
|
||||
import { Application } from '@nativescript/core'
|
||||
import { Application, Frame } from '@nativescript/core'
|
||||
import { runKotlinBridgeSmokeTest } from './native/kotlin-bridge'
|
||||
declare const FaceclawConfigPort: any
|
||||
declare const __DEV__: boolean;
|
||||
@@ -7,6 +7,10 @@ if (__DEV__) runKotlinBridgeSmokeTest()
|
||||
|
||||
// Apply transferred preferences before settings getters or app workers load.
|
||||
FaceclawConfigPort.processPendingRequest()
|
||||
const { createMainPage } = require('./phone-ui/main-page.ios') as typeof import('./phone-ui/main-page.ios')
|
||||
|
||||
Application.run({ create: createMainPage })
|
||||
require('./phone-ui/onboarding-register.ios')
|
||||
const { hasCompletedOnboarding } = require('./phone-ui/onboarding-state') as typeof import('./phone-ui/onboarding-state')
|
||||
Application.run({ create: () => {
|
||||
const frame = new Frame()
|
||||
frame.navigate({ moduleName: hasCompletedOnboarding() ? 'phone-ui/main-page' : 'phone-ui/onboarding-page' })
|
||||
return frame
|
||||
} })
|
||||
Reference in new issue
Block a user