Fix some overdraw (#6617)
This commit is contained in:
@@ -41,12 +41,12 @@ export function HomeHeaderLayoutMobile({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[pal.view, pal.border, styles.tabBar, headerMinimalShellTransform]}
|
style={[pal.border, styles.tabBar, headerMinimalShellTransform]}
|
||||||
onLayout={e => {
|
onLayout={e => {
|
||||||
headerHeight.set(e.nativeEvent.layout.height)
|
headerHeight.set(e.nativeEvent.layout.height)
|
||||||
}}>
|
}}>
|
||||||
<View style={[pal.view, styles.topBar]}>
|
<View style={[pal.view, styles.topBar]}>
|
||||||
<View style={[pal.view, {width: 100}]}>
|
<View style={[{width: 100}]}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
testID="viewHeaderDrawerBtn"
|
testID="viewHeaderDrawerBtn"
|
||||||
onPress={onPressAvi}
|
onPress={onPressAvi}
|
||||||
@@ -68,7 +68,6 @@ export function HomeHeaderLayoutMobile({
|
|||||||
atoms.justify_end,
|
atoms.justify_end,
|
||||||
atoms.align_center,
|
atoms.align_center,
|
||||||
atoms.gap_md,
|
atoms.gap_md,
|
||||||
pal.view,
|
|
||||||
{width: 100},
|
{width: 100},
|
||||||
]}>
|
]}>
|
||||||
{IS_DEV && (
|
{IS_DEV && (
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {BackHandler, StyleSheet, useWindowDimensions, View} from 'react-native'
|
import {BackHandler, StyleSheet, useWindowDimensions, View} from 'react-native'
|
||||||
import {Drawer} from 'react-native-drawer-layout'
|
import {Drawer} from 'react-native-drawer-layout'
|
||||||
import Animated from 'react-native-reanimated'
|
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import * as NavigationBar from 'expo-navigation-bar'
|
import * as NavigationBar from 'expo-navigation-bar'
|
||||||
import {StatusBar} from 'expo-status-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 {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'
|
||||||
@@ -95,7 +93,7 @@ function ShellInner() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Animated.View style={[a.h_full]}>
|
<View style={[a.h_full]}>
|
||||||
<ErrorBoundary
|
<ErrorBoundary
|
||||||
style={{paddingTop: insets.top, paddingBottom: insets.bottom}}>
|
style={{paddingTop: insets.top, paddingBottom: insets.bottom}}>
|
||||||
<Drawer
|
<Drawer
|
||||||
@@ -119,7 +117,7 @@ function ShellInner() {
|
|||||||
<TabsNavigator />
|
<TabsNavigator />
|
||||||
</Drawer>
|
</Drawer>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
</Animated.View>
|
</View>
|
||||||
<Composer winHeight={winDim.height} />
|
<Composer winHeight={winDim.height} />
|
||||||
<ModalsContainer />
|
<ModalsContainer />
|
||||||
<MutedWordsDialog />
|
<MutedWordsDialog />
|
||||||
@@ -133,7 +131,6 @@ function ShellInner() {
|
|||||||
|
|
||||||
export const Shell: React.FC = function ShellImpl() {
|
export const Shell: React.FC = function ShellImpl() {
|
||||||
const {fullyExpandedCount} = useDialogStateControlContext()
|
const {fullyExpandedCount} = useDialogStateControlContext()
|
||||||
const pal = usePalette('default')
|
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
useIntentHandler()
|
useIntentHandler()
|
||||||
|
|
||||||
@@ -147,7 +144,7 @@ export const Shell: React.FC = function ShellImpl() {
|
|||||||
}
|
}
|
||||||
}, [theme])
|
}, [theme])
|
||||||
return (
|
return (
|
||||||
<View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
|
<View testID="mobileShellView" style={[styles.outerContainer]}>
|
||||||
<StatusBar
|
<StatusBar
|
||||||
style={
|
style={
|
||||||
theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
theme.colorScheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user