Browse Source

fixed root with depth in startTabBasedApp

yogevbd 6 years ago
parent
commit
6b18dee309
1 changed files with 33 additions and 0 deletions
  1. 33
    0
      src/deprecated/platformSpecificDeprecated.ios.js

+ 33
- 0
src/deprecated/platformSpecificDeprecated.ios.js View File

@@ -35,6 +35,39 @@ async function startTabBasedApp(params) {
35 35
       params.tabs[index].components = components;
36 36
       Object.assign(tab, components[0]);
37 37
       components.shift();
38
+
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
+      
38 71
     }
39 72
 
40 73
     const {