Merge pull request #30 from ac666666666/feat/ac-feature

fix(web): 补全缺失的 web shims 并修复渲染崩溃问题
This commit is contained in:
jinsha
2026-03-25 11:35:14 +08:00
committed by GitHub
11 changed files with 201 additions and 14 deletions

View File

@@ -10,6 +10,8 @@ import { useTheme } from '../utils/theme';
import { MiniPlayer } from '../components/MiniPlayer';
import * as Sentry from '@sentry/react-native';
import { ErrorBoundary } from '@sentry/react-native';
import { useFonts } from 'expo-font';
import { Ionicons } from '@expo/vector-icons';
Sentry.init({
dsn: process.env.EXPO_PUBLIC_SENTRY_DSN ?? '',
@@ -24,13 +26,18 @@ function RootLayout() {
const restoreSettings = useSettingsStore(s => s.restore);
const darkMode = useSettingsStore(s => s.darkMode);
const [fontsLoaded] = useFonts({
...Ionicons.font,
});
useEffect(() => {
restore();
loadDownloads();
restoreSettings();
}, []);
if (!fontsLoaded) return null;
return (
<SafeAreaProvider>
<StatusBar style={darkMode ? 'light' : 'dark'} />