Bladeren bron

Generate controllerID before using it in tabs.map

Edvinas Bartkus 8 jaren geleden
bovenliggende
commit
f7f8c62987
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/deprecated/platformSpecificDeprecated.ios.js

+ 1
- 1
src/deprecated/platformSpecificDeprecated.ios.js Bestand weergeven

@@ -17,6 +17,7 @@ function startTabBasedApp(params) {
17 17
     return;
18 18
   }
19 19
 
20
+  const controllerID = _.uniqueId('controllerID');
20 21
   params.tabs.map(function(tab, index) {
21 22
     const navigatorID = controllerID + '_nav' + index;
22 23
     const screenInstanceID = _.uniqueId('screenInstanceID');
@@ -38,7 +39,6 @@ function startTabBasedApp(params) {
38 39
     };
39 40
   });
40 41
 
41
-  const controllerID = _.uniqueId('controllerID');
42 42
   const Controller = Controllers.createClass({
43 43
     render: function() {
44 44
       if (!params.drawer || (!params.drawer.left && !params.drawer.right)) {