From 77079055504e2d3597082a931ccf3500648d6e37 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 13 Jun 2017 14:00:32 -0700 Subject: [PATCH] Improved Reviewed By: sahrens Differential Revision: D5214113 fbshipit-source-id: 1eca2347f97a1ff13f71906688a33b9ed7a3a7f4 --- Libraries/Image/ImageBackground.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index 3be306f8c40bb4..3995bfd47c7769 100644 --- a/Libraries/Image/ImageBackground.js +++ b/Libraries/Image/ImageBackground.js @@ -55,6 +55,15 @@ class ImageBackground extends React.Component { right: 0, top: 0, bottom: 0, + // Temporary Workaround: + // Current (imperfect yet) implementation of overwrites width and height styles + // (which is not quite correct), and these styles conflict with explicitly set styles + // of and with our internal layout model here. + // So, we have to proxy/reapply these styles explicitly for actual component. + // This workaround should be removed after implementing proper support of + // intrinsic content size of the . + width: style.width, + height: style.height, }, imageStyle, ]}