diff --git a/src/components/ScreenWrapper.tsx b/src/components/ScreenWrapper.tsx index c597b8c741db1..874e61a377131 100644 --- a/src/components/ScreenWrapper.tsx +++ b/src/components/ScreenWrapper.tsx @@ -139,7 +139,7 @@ function ScreenWrapper( const navigationFallback = useNavigation>(); const navigation = navigationProp ?? navigationFallback; const {windowHeight} = useWindowDimensions(shouldUseCachedViewportHeight); - const {isSmallScreenWidth} = useResponsiveLayout(); + const {isSmallScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout(); const {initialHeight} = useInitialDimensions(); const styles = useThemeStyles(); const keyboardState = useKeyboardState(); @@ -279,7 +279,7 @@ function ScreenWrapper( : children } {isSmallScreenWidth && shouldShowOfflineIndicator && } - {!isSmallScreenWidth && shouldShowOfflineIndicatorInWideScreen && ( + {!shouldUseNarrowLayout && shouldShowOfflineIndicatorInWideScreen && (