mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user