|
@@ -1,19 +1,11 @@
|
1
|
1
|
import _ from 'lodash';
|
2
|
2
|
import {NativeModules} from 'react-native';
|
3
|
3
|
const {NativeNavigation} = NativeModules;
|
4
|
|
-import {uniqueId} from '../providers/UniqueIdProvider';
|
|
4
|
+import * as LayoutBuilder from './LayoutBuilder';
|
5
|
5
|
|
6
|
6
|
export function startApp(params) {
|
7
|
|
- params.container.id = uniqueId(`container`);
|
8
|
|
- if (params.sideMenu) {
|
9
|
|
- if (params.sideMenu.left) {
|
10
|
|
- params.sideMenu.left.id = uniqueId(`container`);
|
11
|
|
- }
|
12
|
|
- if (params.sideMenu.right) {
|
13
|
|
- params.sideMenu.right.id = uniqueId(`container`);
|
14
|
|
- }
|
15
|
|
- }
|
16
|
|
- NativeNavigation.startApp(params);
|
|
7
|
+ const layout = LayoutBuilder.parse(params);
|
|
8
|
+ NativeNavigation.startApp(layout);
|
17
|
9
|
}
|
18
|
10
|
//
|
19
|
11
|
//function parseParams(params) {
|