Fix tabbar swipe conflicting with drawer (#7501)

This commit is contained in:
dan
2025-01-20 02:33:55 +00:00
committed by GitHub
parent 49b1944225
commit 5090426f9c
+3
View File
@@ -13,6 +13,7 @@ import Animated, {
} from 'react-native-reanimated'
import {PressableWithHover} from '#/view/com/util/PressableWithHover'
import {BlockDrawerGesture} from '#/view/shell/BlockDrawerGesture'
import {atoms as a, useTheme} from '#/alf'
import {Text} from '#/components/Typography'
@@ -297,6 +298,7 @@ export function TabBar({
testID={testID}
style={[t.atoms.bg, a.flex_row]}
accessibilityRole="tablist">
<BlockDrawerGesture>
<ScrollView
testID={`${testID}-selector`}
horizontal={true}
@@ -348,6 +350,7 @@ export function TabBar({
/>
</Animated.View>
</ScrollView>
</BlockDrawerGesture>
<View style={[t.atoms.border_contrast_low, styles.outerBottomBorder]} />
</View>
)