From b8e96f9eafc0be41f14d28a03cfa88b69aabc2ee Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok Date: Thu, 13 Aug 2026 12:17:05 +0200 Subject: [PATCH] block RN GH on the web --- metro.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/metro.config.ts b/metro.config.ts index 25d1ac8104..f5d160fb50 100644 --- a/metro.config.ts +++ b/metro.config.ts @@ -29,6 +29,14 @@ const config = getSentryExpoConfig(import.meta.dirname, { } const resolver: CustomResolver = (context, moduleName, platform) => { + if ( + platform === 'web' && + /^react-native-gesture-handler(\/|$)/.test(moduleName) + ) { + throw new Error( + `react-native-gesture-handler must not be imported on web (requested from ${context.originModulePath})`, + ) + } /* * react-native-webview has no web implementation (its fallback renders * "does not support this platform"), so swap in react-native-web-webview