A simpler fix for trending swipe issue (#7424)

This commit is contained in:
dan
2025-01-10 18:06:07 +00:00
committed by GitHub
parent a7da646286
commit 6ca97406c1
4 changed files with 42 additions and 15 deletions
@@ -1,7 +0,0 @@
import {createContext} from 'react'
import {Gesture} from 'react-native-gesture-handler'
// Not really used but serves as a fallback for types.
const noopGesture = Gesture.Native()
export const TrendingGestureContext = createContext(noopGesture)
+1 -4
View File
@@ -34,7 +34,6 @@ import {BottomSheetOutlet} from '../../../modules/bottom-sheet'
import {updateActiveViewAsync} from '../../../modules/expo-bluesky-swiss-army/src/VisibilityView'
import {Composer} from './Composer'
import {DrawerContent} from './Drawer'
import {TrendingGestureContext} from './TrendingGestureContext'
function ShellInner() {
const t = useTheme()
@@ -145,9 +144,7 @@ function ShellInner() {
dim: 'rgba(10, 13, 16, 0.8)',
}),
}}>
<TrendingGestureContext.Provider value={trendingScrollGesture}>
<TabsNavigator />
</TrendingGestureContext.Provider>
<TabsNavigator />
</Drawer>
</ErrorBoundary>
</View>