Skip to content

Commit

Permalink
fix: styling on Screenwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Mar 23, 2021
1 parent 9a06b68 commit e8734d1
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit e8734d1

Please sign in to comment.