Skip to content

Commit

Permalink
[ReactNative] Remove padding restriction on images
Browse files Browse the repository at this point in the history
Summary:
@public
Padding actually works fine on images.

Test Plan: Nested text inside an image is properly positioned with padding on the image.
  • Loading branch information
sahrens committed May 2, 2015
1 parent 5453be2 commit 48b281d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Libraries/Image/ImageStylePropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 48b281d

Please sign in to comment.