From 625459add6c14c9ae6c1158fbe5c67a4e0838fc6 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 21 Nov 2024 23:40:37 +0000 Subject: [PATCH] Fix some overdraw (#6617) --- src/view/com/home/HomeHeaderLayoutMobile.tsx | 5 ++--- src/view/shell/index.tsx | 9 +++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/view/com/home/HomeHeaderLayoutMobile.tsx b/src/view/com/home/HomeHeaderLayoutMobile.tsx index 98253ad748..8323960924 100644 --- a/src/view/com/home/HomeHeaderLayoutMobile.tsx +++ b/src/view/com/home/HomeHeaderLayoutMobile.tsx @@ -41,12 +41,12 @@ export function HomeHeaderLayoutMobile({ return ( { headerHeight.set(e.nativeEvent.layout.height) }}> - + {IS_DEV && ( diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 1b5abe4788..b4043bb0e3 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -1,7 +1,6 @@ import React from 'react' import {BackHandler, StyleSheet, useWindowDimensions, View} from 'react-native' import {Drawer} from 'react-native-drawer-layout' -import Animated from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' import * as NavigationBar from 'expo-navigation-bar' import {StatusBar} from 'expo-status-bar' @@ -10,7 +9,6 @@ import {useNavigation, useNavigationState} from '@react-navigation/native' import {useDedupe} from '#/lib/hooks/useDedupe' import {useIntentHandler} from '#/lib/hooks/useIntentHandler' import {useNotificationsHandler} from '#/lib/hooks/useNotificationHandler' -import {usePalette} from '#/lib/hooks/usePalette' import {useNotificationsRegistration} from '#/lib/notifications/notifications' import {isStateAtTabRoot} from '#/lib/routes/helpers' import {useTheme} from '#/lib/ThemeContext' @@ -95,7 +93,7 @@ function ShellInner() { return ( <> - + - + @@ -133,7 +131,6 @@ function ShellInner() { export const Shell: React.FC = function ShellImpl() { const {fullyExpandedCount} = useDialogStateControlContext() - const pal = usePalette('default') const theme = useTheme() useIntentHandler() @@ -147,7 +144,7 @@ export const Shell: React.FC = function ShellImpl() { } }, [theme]) return ( - + 0)