ソースを参照

Save buttons props for root screens

Guy Carmeli 8 年 前
コミット
3e717161ab
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5
    0
      src/deprecated/platformSpecificDeprecated.android.js

+ 5
- 0
src/deprecated/platformSpecificDeprecated.android.js ファイルの表示

546
       if (button.buttonColor) {
546
       if (button.buttonColor) {
547
         button.color = processColor(button.buttonColor);
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