We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8522ec + 28077bb commit 891d557Copy full SHA for 891d557
Components/Widgets/Content.js
@@ -24,8 +24,10 @@ export default class Content extends NativeBaseComponent {
24
}
25
26
render() {
27
+ const contentContainerStyle = this.props.contentContainerStyle || {};
28
+ contentContainerStyle.padding = (this.props.padder) ? this.getTheme().contentPadding : 0;
29
return(
- <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>
31
);
32
33
0 commit comments