Browse Source

Override BottomTabs props only if props are undefined

closes #312
Guy Carmeli 8 years ago
parent
commit
fb8dee2d79
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/platformSpecific.android.js

+ 3
- 1
src/platformSpecific.android.js View File

80
 
80
 
81
   if (params.tabs) {
81
   if (params.tabs) {
82
     _.forEach(params.tabs, (tab) => {
82
     _.forEach(params.tabs, (tab) => {
83
-      tab.passProps = params.passProps;
83
+      if (!tab.passProps) {
84
+        tab.passProps = params.passProps;
85
+      }
84
       savePassProps(tab);
86
       savePassProps(tab);
85
     });
87
     });
86
   }
88
   }