瀏覽代碼

Save buttons props for root screens

Guy Carmeli 7 年之前
父節點
當前提交
3e717161ab
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/deprecated/platformSpecificDeprecated.android.js

+ 5
- 0
src/deprecated/platformSpecificDeprecated.android.js 查看文件

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