1 | import * as store from './router/router'
|
2 | import type { OneRouter } from './interfaces/router'
|
3 |
|
4 | export const router: OneRouter.Router = {
|
5 | navigate: store.navigate,
|
6 | push: store.push,
|
7 | dismiss: store.dismiss,
|
8 | dismissAll: store.dismissAll,
|
9 | canDismiss: store.canDismiss,
|
10 | replace: store.replace,
|
11 | back: store.goBack,
|
12 | canGoBack: store.canGoBack,
|
13 | setParams: (params) =>
|
14 | store.setParams(
|
15 |
|
16 | params as any
|
17 | ),
|
18 | subscribe: store.subscribeToRootState,
|
19 | onLoadState: store.subscribeToLoadingState,
|
20 | }
|