From 4bf364d9552faae6150a787a9209e05c875fcef9 Mon Sep 17 00:00:00 2001 From: imeepos Date: Wed, 28 Jan 2026 14:53:13 +0800 Subject: [PATCH] fix: bug --- app/_layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index 307b715..358d988 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -6,9 +6,12 @@ import { StatusBar } from 'expo-status-bar' import { useEffect } from 'react' import 'react-native-reanimated' import { GestureHandlerRootView } from 'react-native-gesture-handler' -import { View, ActivityIndicator, AppState } from 'react-native' +import { View, ActivityIndicator, AppState, LogBox } from 'react-native' import * as Updates from 'expo-updates' +// 抑制已知的第三方库警告 +LogBox.ignoreLogs(['SafeAreaView has been deprecated']) + import { useColorScheme } from '@/hooks/use-color-scheme' import { KeyboardProvider } from 'react-native-keyboard-controller' import { SafeAreaProvider } from 'react-native-safe-area-context'