about summary refs log tree commit diff
path: root/src/view/shell/TrendingGestureContext.tsx
diff options
context:
space:
mode:
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)