Browse Source

清除启动警告日志

zbb 3 tháng trước cách đây
mục cha
commit
d8b60c8bc2
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/_layout.tsx

+ 4 - 0
app/_layout.tsx

@@ -5,8 +5,12 @@ import 'react-native-reanimated';
 
 import { AuthProvider } from '@/contexts/AuthContext';
 import { useColorScheme } from '@/hooks/use-color-scheme';
+import { LogBox } from 'react-native';
 import { PaperProvider } from 'react-native-paper';
 
+// Disable all yellow box warnings
+LogBox.ignoreAllLogs(true);
+
 export const unstable_settings = {
   anchor: '(tabs)',
 };