14060c00aS猫头猫import React from 'react'; 2bf6e62f2S猫头猫import {NavigationContainer} from '@react-navigation/native'; 3bf6e62f2S猫头猫import {createNativeStackNavigator} from '@react-navigation/native-stack'; 4bf6e62f2S猫头猫import bootstrap from './bootstrap'; 5*5b5a8d79S猫头猫import {navigationRef, routes} from './router'; 6bf6e62f2S猫头猫import {GestureHandlerRootView} from 'react-native-gesture-handler'; 7bf6e62f2S猫头猫import Dialogs from '@/components/dialogs'; 8bf6e62f2S猫头猫import Panels from '@/components/panels'; 919dc08ecS猫头猫import PageBackground from '@/components/base/pageBackground'; 101c06c799S猫头猫import {SafeAreaProvider} from 'react-native-safe-area-context'; 11ea6d708fS猫头猫import Debug from '@/components/debug'; 12a33ab089S猫头猫import {ImageViewComponent} from '@/components/imageViewer'; 137a8d024eS猫头猫import {PortalHost} from '@/components/base/portal'; 146cfecf1cS猫头猫import globalStyle from '@/constants/globalStyle'; 15a27adc20S猫头猫import Theme from '@/core/theme'; 1672381fc8S猫头猫import {BootstrapComp} from './useBootstrap'; 17b85f12f7S猫头猫import {ToastBaseComponent} from '@/components/base/toast'; 1810c78fceS猫头猫import {StatusBar} from 'react-native'; 19bf6e62f2S猫头猫 20bf6e62f2S猫头猫/** 21bf6e62f2S猫头猫 * 字体颜色 22bf6e62f2S猫头猫 */ 23bf6e62f2S猫头猫 2410c78fceS猫头猫StatusBar.setBackgroundColor('transparent'); 2510c78fceS猫头猫StatusBar.setTranslucent(true); 2610c78fceS猫头猫 27bf6e62f2S猫头猫bootstrap(); 28e7fa3837S猫头猫const Stack = createNativeStackNavigator<any>(); 29bf6e62f2S猫头猫 30bf6e62f2S猫头猫export default function Pages() { 31a27adc20S猫头猫 const theme = Theme.useTheme(); 32cf2d630eS猫头猫 33bf6e62f2S猫头猫 return ( 3472381fc8S猫头猫 <> 3572381fc8S猫头猫 <BootstrapComp /> 366cfecf1cS猫头猫 <GestureHandlerRootView style={globalStyle.flex1}> 371c06c799S猫头猫 <SafeAreaProvider> 38*5b5a8d79S猫头猫 <NavigationContainer theme={theme} ref={navigationRef}> 394060c00aS猫头猫 <PageBackground /> 40bf6e62f2S猫头猫 <Stack.Navigator 41bf6e62f2S猫头猫 initialRouteName={routes[0].path} 42bf6e62f2S猫头猫 screenOptions={{ 43bf6e62f2S猫头猫 headerShown: false, 44bf6e62f2S猫头猫 animation: 'slide_from_right', 455f52c604S猫头猫 animationDuration: 100, 46bf6e62f2S猫头猫 }}> 47bf6e62f2S猫头猫 {routes.map(route => ( 48bf6e62f2S猫头猫 <Stack.Screen 49bf6e62f2S猫头猫 key={route.path} 50bf6e62f2S猫头猫 name={route.path} 514060c00aS猫头猫 component={route.component} 524060c00aS猫头猫 /> 53bf6e62f2S猫头猫 ))} 54bf6e62f2S猫头猫 </Stack.Navigator> 55bf6e62f2S猫头猫 564060c00aS猫头猫 <Panels /> 574060c00aS猫头猫 <Dialogs /> 58a33ab089S猫头猫 <ImageViewComponent /> 59ea6d708fS猫头猫 <Debug /> 607a8d024eS猫头猫 <PortalHost /> 61b85f12f7S猫头猫 <ToastBaseComponent /> 62bf6e62f2S猫头猫 </NavigationContainer> 631c06c799S猫头猫 </SafeAreaProvider> 64bf6e62f2S猫头猫 </GestureHandlerRootView> 6572381fc8S猫头猫 </> 66bf6e62f2S猫头猫 ); 67bf6e62f2S猫头猫} 68