From 5c26357fa23ec11ad3d4cd2a76ee4d11408d4c49 Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok Date: Mon, 7 Sep 2026 16:11:29 +0200 Subject: [PATCH] Rm unused trending scroll gesture --- src/view/shell/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index c74a055499..a3d2d3a27c 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -1,8 +1,7 @@ -import {useCallback, useEffect, useState} from 'react' +import {useCallback, useEffect} from 'react' import {BackHandler, useWindowDimensions, View} from 'react-native' import {Drawer} from 'react-native-drawer-layout' import {SystemBars} from 'react-native-edge-to-edge' -import {Gesture} from 'react-native-gesture-handler' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {useNavigation, useNavigationState} from '@react-navigation/native' @@ -143,7 +142,6 @@ function DrawerLayout({children}: {children: React.ReactNode}) { const {hasSession} = useSession() const swipeEnabled = !canGoBack && hasSession && !isDrawerSwipeDisabled - const [trendingScrollGesture] = useState(() => Gesture.Native()) const renderDrawerContent = useCallback(() => , []) const onOpenDrawer = useCallback( @@ -160,8 +158,6 @@ function DrawerLayout({children}: {children: React.ReactNode}) { renderDrawerContent={renderDrawerContent} drawerStyle={{width: Math.min(400, winDim.width * 0.8)}} configureGestureHandler={handler => { - handler = handler.requireExternalGestureToFail(trendingScrollGesture) - if (swipeEnabled) { if (isDrawerOpen) { return handler.activeOffsetX([-1, 1])