diff options
author | dan <dan.abramov@gmail.com> | 2024-11-22 19:51:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 19:51:36 +0000 |
commit | ba04bb58cd23d8a4266d60087e2bf4dbda12e060 (patch) | |
tree | 769e285ee483484f9a52e6f95e225c1850523a9d /src/view | |
parent | 7fa47ef3c96ff07ef9eaf09df307d931606ca985 (diff) | |
download | voidsky-ba04bb58cd23d8a4266d60087e2bf4dbda12e060.tar.zst |
Fix leaking background (#6642)
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/shell/index.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index b4043bb0e..1ab045d75 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -9,6 +9,7 @@ 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' @@ -132,6 +133,7 @@ function ShellInner() { export const Shell: React.FC = function ShellImpl() { const {fullyExpandedCount} = useDialogStateControlContext() const theme = useTheme() + const pal = usePalette('default') useIntentHandler() React.useEffect(() => { @@ -144,7 +146,7 @@ export const Shell: React.FC = function ShellImpl() { } }, [theme]) return ( - <View testID="mobileShellView" style={[styles.outerContainer]}> + <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}> <StatusBar style={ theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0) |