about summary refs log tree commit diff
path: root/src/view/shell/TrendingGestureContext.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2025-01-10 00:32:08 +0000
committerGitHub <noreply@github.com>2025-01-10 00:32:08 +0000
commit02dbcc134ef9f9870c4f6eab2da93773b8310d67 (patch)
treec69ac4c1a43f350a2eb01dd78dfec20d00bb9224 /src/view/shell/TrendingGestureContext.tsx
parent72dc508cb7f678df50ebb41db9adbcf826ed6975 (diff)
downloadvoidsky-02dbcc134ef9f9870c4f6eab2da93773b8310d67.tar.zst
Fix trending swipe gesture (#7417)
Diffstat (limited to 'src/view/shell/TrendingGestureContext.tsx')
-rw-r--r--src/view/shell/TrendingGestureContext.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/view/shell/TrendingGestureContext.tsx b/src/view/shell/TrendingGestureContext.tsx
new file mode 100644
index 000000000..8f21f444b
--- /dev/null
+++ b/src/view/shell/TrendingGestureContext.tsx
@@ -0,0 +1,7 @@
+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)