Skip to content

Commit 1ff39cb

Browse files
IbrahimSulaiIbrahim Sulaiman
andauthored
Handled the bleed property. In web its not having condition for fist and last. so removed this condition (#6084)
Co-authored-by: Ibrahim Sulaiman <ibrahim.sulaiman@imaginea.com>
1 parent b3ea190 commit 1ff39cb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

source/community/reactnative/src/components/containers/container-wrapper.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ export class ContainerWrapper extends React.PureComponent {
106106

107107
// bleed
108108
if (this.payload.bleed && this.props.containerStyle) {
109-
const { isFirst, isLast } = this.props;
110-
const marginLeft = isFirst ? -Constants.containerPadding : 0;
111-
const marginRight = isLast ? -Constants.containerPadding : 0;
112-
113-
computedStyles.push({ marginVertical: -containerPadding, marginLeft, marginRight });
109+
computedStyles.push({ padding: -Constants.containerPadding });
114110
}
115111

116112
// height

0 commit comments

Comments
 (0)