Browse Source

Generate controllerID before using it in tabs.map

Edvinas Bartkus 8 years ago
parent
commit
f7f8c62987
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/deprecated/platformSpecificDeprecated.ios.js

+ 1
- 1
src/deprecated/platformSpecificDeprecated.ios.js View File

@@ -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)) {