Skip to content

Commit

Permalink
Mobile - Layout - Set a background color for the toolbar (#40266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Pacheco authored Apr 18, 2022
1 parent 33a5d51 commit 873aa27
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/edit-post/src/components/layout/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,17 @@ class Layout extends Component {
? headerToolbarStyles[ 'header-toolbar__container' ].height
: 0;

const containerStyles = getStylesFromColorScheme(
styles.container,
styles.containerDark
);

const toolbarKeyboardAvoidingViewStyle = {
...styles.toolbarKeyboardAvoidingView,
left: this.state.safeAreaInsets.left,
right: this.state.safeAreaInsets.right,
bottom: this.state.safeAreaInsets.bottom,
backgroundColor: containerStyles.backgroundColor,
};

const editorStyles = [
Expand All @@ -138,10 +144,7 @@ class Layout extends Component {
return (
<Tooltip.Slot>
<SafeAreaView
style={ getStylesFromColorScheme(
styles.container,
styles.containerDark
) }
style={ containerStyles }
onLayout={ this.onRootViewLayout }
>
<AutosaveMonitor disableIntervalChecks />
Expand Down

0 comments on commit 873aa27

Please sign in to comment.