From 9f27c345e69eaa53e38534a6afb8e33dbe4a3d7c Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 14 Jan 2026 15:31:05 +0300 Subject: [PATCH] Filter react-native-web pointerEvents deprecation warning - Suppress third-party library deprecation warning - Maintains console.warn for app-specific warnings - Clean console output --- mobile/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mobile/index.ts b/mobile/index.ts index 131c464f..d6071d5f 100644 --- a/mobile/index.ts +++ b/mobile/index.ts @@ -30,6 +30,20 @@ if (typeof global.TextEncoder === 'undefined') { console.log('ℹ️ [INDEX] TextEncoder/TextDecoder already available'); } +// Filter out known third-party deprecation warnings +const originalWarn = console.warn; +console.warn = (...args: any[]) => { + const message = args[0]?.toString() || ''; + + // Filter react-native-web deprecation warnings + if (message.includes('props.pointerEvents is deprecated')) { + return; + } + + // Pass through all other warnings + originalWarn.apply(console, args); +}; + console.log('📦 [INDEX] Loading Expo...'); import { registerRootComponent } from 'expo'; console.log('✅ [INDEX] Expo loaded');