diff --git a/src/components/IllustratedHeaderPageLayout.js b/src/components/IllustratedHeaderPageLayout.js
index d1403bd4029e..6634281ec495 100644
--- a/src/components/IllustratedHeaderPageLayout.js
+++ b/src/components/IllustratedHeaderPageLayout.js
@@ -9,7 +9,6 @@ import ScreenWrapper from './ScreenWrapper';
import styles from '../styles/styles';
import themeColors from '../styles/themes/default';
import * as StyleUtils from '../styles/StyleUtils';
-import useWindowDimensions from '../hooks/useWindowDimensions';
import FixedFooter from './FixedFooter';
import useNetwork from '../hooks/useNetwork';
@@ -35,7 +34,6 @@ const defaultProps = {
};
function IllustratedHeaderPageLayout({backgroundColor, children, illustration, footer, ...propsToPassToHeader}) {
- const {windowHeight} = useWindowDimensions();
const {isOffline} = useNetwork();
return (
+ {/* Safari on ios has a bug where overscrolling the page scrollview shows green the background color. This is a workaround to fix that. https://github.com/Expensify/App/issues/23422#issuecomment-1666890994 */}
+
+
+
+
-
- {children}
+ {children}
- {!_.isNull(footer) && {footer}}
+ {!_.isNull(footer) && {footer}}
>
)}
diff --git a/src/styles/styles.js b/src/styles/styles.js
index 7bb44acfb97a..ba7f505e6a2e 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -3716,6 +3716,15 @@ const styles = {
right: 0,
}),
+ dualColorOverscrollSpacer: {
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: -1,
+ },
+
willChangeTransform: {
willChange: 'transform',
},