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