[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.
This commit is contained in:
Spencer Ahrens
2015-05-01 16:30:47 -07:00
parent 5453be2ab2
commit 48b281de76

View File

@@ -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;