From bb58ac8c85ef9b0281bf4c1e5ae274ff99bfcd8c Mon Sep 17 00:00:00 2001 From: Gerardo Date: Tue, 12 Apr 2022 11:56:00 +0200 Subject: [PATCH] Mobile - Layout - Set a background color for the toolbar --- .../edit-post/src/components/layout/index.native.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/edit-post/src/components/layout/index.native.js b/packages/edit-post/src/components/layout/index.native.js index 8e137b18987b42..c124dfc385b204 100644 --- a/packages/edit-post/src/components/layout/index.native.js +++ b/packages/edit-post/src/components/layout/index.native.js @@ -118,11 +118,17 @@ class Layout extends Component { ? headerToolbarStyles.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 = [ @@ -138,10 +144,7 @@ class Layout extends Component { return (