Fix leaking background (#6642)
This commit is contained in:
@@ -9,6 +9,7 @@ import {useNavigation, useNavigationState} from '@react-navigation/native'
|
|||||||
import {useDedupe} from '#/lib/hooks/useDedupe'
|
import {useDedupe} from '#/lib/hooks/useDedupe'
|
||||||
import {useIntentHandler} from '#/lib/hooks/useIntentHandler'
|
import {useIntentHandler} from '#/lib/hooks/useIntentHandler'
|
||||||
import {useNotificationsHandler} from '#/lib/hooks/useNotificationHandler'
|
import {useNotificationsHandler} from '#/lib/hooks/useNotificationHandler'
|
||||||
|
import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
import {useNotificationsRegistration} from '#/lib/notifications/notifications'
|
import {useNotificationsRegistration} from '#/lib/notifications/notifications'
|
||||||
import {isStateAtTabRoot} from '#/lib/routes/helpers'
|
import {isStateAtTabRoot} from '#/lib/routes/helpers'
|
||||||
import {useTheme} from '#/lib/ThemeContext'
|
import {useTheme} from '#/lib/ThemeContext'
|
||||||
@@ -132,6 +133,7 @@ function ShellInner() {
|
|||||||
export const Shell: React.FC = function ShellImpl() {
|
export const Shell: React.FC = function ShellImpl() {
|
||||||
const {fullyExpandedCount} = useDialogStateControlContext()
|
const {fullyExpandedCount} = useDialogStateControlContext()
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
|
const pal = usePalette('default')
|
||||||
useIntentHandler()
|
useIntentHandler()
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
@@ -144,7 +146,7 @@ export const Shell: React.FC = function ShellImpl() {
|
|||||||
}
|
}
|
||||||
}, [theme])
|
}, [theme])
|
||||||
return (
|
return (
|
||||||
<View testID="mobileShellView" style={[styles.outerContainer]}>
|
<View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
|
||||||
<StatusBar
|
<StatusBar
|
||||||
style={
|
style={
|
||||||
theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user