|
@@ -37,37 +37,38 @@ async function startTabBasedApp(params) {
|
37
|
37
|
components.shift();
|
38
|
38
|
|
39
|
39
|
components.forEach(component => {
|
40
|
|
- const screenInstanceID = _.uniqueId('screenInstanceID');
|
41
|
|
-
|
42
|
|
- const {
|
43
|
|
- navigatorStyle,
|
44
|
|
- navigatorButtons,
|
45
|
|
- navigatorEventID
|
46
|
|
- } = _mergeScreenSpecificSettings(component.screen, screenInstanceID, params);
|
47
|
|
- _saveNavigatorButtonsProps(navigatorButtons);
|
48
|
|
- _saveNavBarComponentProps(navigatorStyle);
|
49
|
|
- const passProps = Object.assign({}, params.passProps);
|
50
|
|
- passProps.navigatorID = navigatorID;
|
51
|
|
- passProps.screenInstanceID = screenInstanceID;
|
52
|
|
- passProps.navigatorEventID = navigatorEventID;
|
53
|
|
-
|
54
|
|
-
|
55
|
|
- component.navigationParams = {
|
56
|
|
- screenInstanceID,
|
57
|
|
- navigatorStyle,
|
58
|
|
- navigatorButtons,
|
59
|
|
- navigatorEventID,
|
60
|
|
- navigatorID: navigatorID,
|
61
|
|
- passProps
|
62
|
|
- };
|
63
|
|
-
|
64
|
|
- component.subtitle = params.subtitle;
|
65
|
|
- component.passProps = passProps;
|
66
|
|
-
|
67
|
|
- savePassProps(component);
|
68
|
|
-
|
69
|
|
- });
|
70
|
|
-
|
|
40
|
+ const screenInstanceID = _.uniqueId('screenInstanceID');
|
|
41
|
+
|
|
42
|
+ const {
|
|
43
|
+ navigatorStyle,
|
|
44
|
+ navigatorButtons,
|
|
45
|
+ navigatorEventID
|
|
46
|
+ } = _mergeScreenSpecificSettings(component.screen, screenInstanceID, params);
|
|
47
|
+ _saveNavigatorButtonsProps(navigatorButtons);
|
|
48
|
+ _saveNavBarComponentProps(navigatorStyle);
|
|
49
|
+ const passProps = Object.assign({}, component.passProps);
|
|
50
|
+ passProps.navigatorID = navigatorID;
|
|
51
|
+ passProps.screenInstanceID = screenInstanceID;
|
|
52
|
+ passProps.navigatorEventID = navigatorEventID;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+ component.navigationParams = {
|
|
56
|
+ screenInstanceID,
|
|
57
|
+ navigatorStyle,
|
|
58
|
+ navigatorButtons,
|
|
59
|
+ navigatorEventID,
|
|
60
|
+ navigatorID: navigatorID,
|
|
61
|
+ passProps
|
|
62
|
+ };
|
|
63
|
+
|
|
64
|
+ component.subtitle = params.subtitle;
|
|
65
|
+ component.passProps = passProps;
|
|
66
|
+ component.navigatorStyle = navigatorStyle;
|
|
67
|
+
|
|
68
|
+ savePassProps(component);
|
|
69
|
+
|
|
70
|
+ });
|
|
71
|
+
|
71
|
72
|
}
|
72
|
73
|
|
73
|
74
|
const {
|