Skip to content

Commit 891d557

Browse files
author
Sankhadeep
committed
Merge branch 'master' of github.com:GeekyAnts/NativeBase
2 parents c8522ec + 28077bb commit 891d557

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Components/Widgets/Content.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export default class Content extends NativeBaseComponent {
2424
}
2525

2626
render() {
27+
const contentContainerStyle = this.props.contentContainerStyle || {};
28+
contentContainerStyle.padding = (this.props.padder) ? this.getTheme().contentPadding : 0;
2729
return(
28-
<ScrollView {...this.prepareRootProps()} contentContainerStyle={{padding: (this.props.padder) ? this.getTheme().contentPadding : 0}}>{this.props.children}</ScrollView>
30+
<ScrollView {...this.prepareRootProps()} contentContainerStyle={contentContainerStyle}>{this.props.children}</ScrollView>
2931
);
3032
}
3133
}

0 commit comments

Comments
 (0)