Parcourir la source

Save buttons props for root screens

Guy Carmeli il y a 7 ans
Parent
révision
3e717161ab
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5
    0
      src/deprecated/platformSpecificDeprecated.android.js

+ 5
- 0
src/deprecated/platformSpecificDeprecated.android.js Voir le fichier

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