diff options
author | dan <dan.abramov@gmail.com> | 2024-11-21 23:40:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 23:40:37 +0000 |
commit | 625459add6c14c9ae6c1158fbe5c67a4e0838fc6 (patch) | |
tree | 451cbfb29f23469b92d4fba3176babe553e38f7d /src/view/shell/index.tsx | |
parent | 391e0c4c1881e1bf416321725bad7662e9883868 (diff) | |
download | voidsky-625459add6c14c9ae6c1158fbe5c67a4e0838fc6.tar.zst |
Fix some overdraw (#6617)
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 1b5abe478..b4043bb0e 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 ( <> - <Animated.View style={[a.h_full]}> + <View style={[a.h_full]}> <ErrorBoundary style={{paddingTop: insets.top, paddingBottom: insets.bottom}}> <Drawer @@ -119,7 +117,7 @@ function ShellInner() { <TabsNavigator /> </Drawer> </ErrorBoundary> - </Animated.View> + </View> <Composer winHeight={winDim.height} /> <ModalsContainer /> <MutedWordsDialog /> @@ -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 ( - <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}> + <View testID="mobileShellView" style={[styles.outerContainer]}> <StatusBar style={ theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0) |