From 6e980a826e568bb2e2ee784a769c5de07423f3e9 Mon Sep 17 00:00:00 2001 From: Logan Daniels Date: Wed, 12 Sep 2018 12:23:34 -0700 Subject: [PATCH] Back out "Change ImageBackground to work with percentage image sizes" Summary: Original commit changeset: cec3802d30b7 See my comment on original diff: D9307123 The diff regresses ImageBackground in some cases, so I'm reverting until we can re-work the diff to handle existing usages in an expected way. Differential Revision: D9790698 fbshipit-source-id: 23ad670e004980f22bd1413eca3692f51beff717 --- Libraries/Image/ImageBackground.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Image/ImageBackground.js b/Libraries/Image/ImageBackground.js index 4bae2c339..7d04576dc 100644 --- a/Libraries/Image/ImageBackground.js +++ b/Libraries/Image/ImageBackground.js @@ -76,8 +76,8 @@ class ImageBackground extends React.Component<$FlowFixMeProps> { // 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: '100%', - height: '100%', + width: style.width, + height: style.height, }, imageStyle, ]}