|
@@ -1,4 +1,3 @@
|
1
|
|
-import _ from 'lodash';
|
2
|
1
|
import {NativeModules} from 'react-native';
|
3
|
2
|
const {NativeNavigation} = NativeModules;
|
4
|
3
|
import * as LayoutBuilder from './LayoutBuilder';
|
|
@@ -6,29 +5,3 @@ import * as LayoutBuilder from './LayoutBuilder';
|
6
|
5
|
export function startApp(params) {
|
7
|
6
|
NativeNavigation.startApp(LayoutBuilder.parse(params));
|
8
|
7
|
}
|
9
|
|
-//
|
10
|
|
-//function parseParams(params) {
|
11
|
|
-// const msg = `invalid params passed to startApp: ${params}`;
|
12
|
|
-// if (!params) {
|
13
|
|
-// throw new Error(msg);
|
14
|
|
-// }
|
15
|
|
-//
|
16
|
|
-// if (params.tabs) {
|
17
|
|
-// return parseTabs(params);
|
18
|
|
-// }
|
19
|
|
-//
|
20
|
|
-// if (params.container) {
|
21
|
|
-// return parseContainer(params);
|
22
|
|
-// }
|
23
|
|
-//
|
24
|
|
-// throw new Error(msg);
|
25
|
|
-//}
|
26
|
|
-//
|
27
|
|
-//function parseTabs(params) {
|
28
|
|
-////&& params.tabs.length > 0 && _.every(params.tabs, (t) => t.containerKey)
|
29
|
|
-//}
|
30
|
|
-//
|
31
|
|
-//function parseContainer(params) {
|
32
|
|
-//
|
33
|
|
-//}
|
34
|
|
-
|