Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/ScreenWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const defaultProps = {
};

const ScreenWrapper = props => (
<SafeAreaInsetsContext.Consumer style={props.style}>
<SafeAreaInsetsContext.Consumer>
{(insets) => {
const {paddingTop, paddingBottom} = getSafeAreaPadding(insets);
const paddingStyle = {};
Expand All @@ -44,11 +44,11 @@ const ScreenWrapper = props => (
}

return (
<View
style={[
styles.flex1,
paddingStyle,
]}
<View style={_.union([
props.style,
styles.flex1,
paddingStyle,
])}
>
<HeaderGap />
{// If props.children is a function, call it to provide the insets to the children.
Expand Down