From 48b281de76170a63d046e21f9180fbae3a9c9eea Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Fri, 1 May 2015 16:30:47 -0700 Subject: [PATCH] [ReactNative] Remove padding restriction on images Summary: @public Padding actually works fine on images. Test Plan: Nested text inside an image is properly positioned with padding on the image. --- Libraries/Image/ImageStylePropTypes.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Libraries/Image/ImageStylePropTypes.js b/Libraries/Image/ImageStylePropTypes.js index 4e361d9de..d46807ce7 100644 --- a/Libraries/Image/ImageStylePropTypes.js +++ b/Libraries/Image/ImageStylePropTypes.js @@ -29,19 +29,4 @@ var ImageStylePropTypes = { opacity: ReactPropTypes.number, }; -// Image doesn't support padding correctly (#4841912) -var unsupportedProps = Object.keys({ - padding: null, - paddingTop: null, - paddingLeft: null, - paddingRight: null, - paddingBottom: null, - paddingVertical: null, - paddingHorizontal: null, -}); - -for (var i = 0; i < unsupportedProps.length; i++) { - delete ImageStylePropTypes[unsupportedProps[i]]; -} - module.exports = ImageStylePropTypes;