Skip to content

Commit

Permalink
Fix leaking background (#6642)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 22, 2024
1 parent 7fa47ef commit ba04bb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/shell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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(() => {
Expand All @@ -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)
Expand Down

0 comments on commit ba04bb5

Please sign in to comment.