mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user