Filter react-native-web pointerEvents deprecation warning

- Suppress third-party library deprecation warning
- Maintains console.warn for app-specific warnings
- Clean console output
This commit is contained in:
2026-01-14 15:31:05 +03:00
parent 8d30519efc
commit 9f27c345e6
+14
View File
@@ -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');