Browse Source

Save buttons props for root screens

Guy Carmeli 7 years ago
parent
commit
3e717161ab
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/deprecated/platformSpecificDeprecated.android.js

+ 5
- 0
src/deprecated/platformSpecificDeprecated.android.js View File

@@ -546,6 +546,11 @@ function addNavigatorButtons(screen, sideMenuParams) {
546 546
       if (button.buttonColor) {
547 547
         button.color = processColor(button.buttonColor);
548 548
       }
549
+      if (button.component) {
550
+        const passPropsKey = _.uniqueId('customButtonComponent');
551
+        PropRegistry.save(passPropsKey, button.passProps);
552
+        button.passProps = {passPropsKey};
553
+      }
549 554
     });
550 555
   }
551 556