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'; 5e7fa3837S猫头猫import {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'; 17*b85f12f7S猫头猫import {ToastBaseComponent} from '@/components/base/toast'; 18bf6e62f2S猫头猫 19bf6e62f2S猫头猫/** 20bf6e62f2S猫头猫 * 字体颜色 21bf6e62f2S猫头猫 */ 22bf6e62f2S猫头猫 23bf6e62f2S猫头猫bootstrap(); 24e7fa3837S猫头猫const Stack = createNativeStackNavigator<any>(); 25bf6e62f2S猫头猫 26bf6e62f2S猫头猫export default function Pages() { 27a27adc20S猫头猫 const theme = Theme.useTheme(); 28cf2d630eS猫头猫 29bf6e62f2S猫头猫 return ( 3072381fc8S猫头猫 <> 3172381fc8S猫头猫 <BootstrapComp /> 326cfecf1cS猫头猫 <GestureHandlerRootView style={globalStyle.flex1}> 331c06c799S猫头猫 <SafeAreaProvider> 34a27adc20S猫头猫 <NavigationContainer theme={theme}> 354060c00aS猫头猫 <PageBackground /> 36bf6e62f2S猫头猫 <Stack.Navigator 37bf6e62f2S猫头猫 initialRouteName={routes[0].path} 38bf6e62f2S猫头猫 screenOptions={{ 39bf6e62f2S猫头猫 headerShown: false, 40bf6e62f2S猫头猫 animation: 'slide_from_right', 415f52c604S猫头猫 animationDuration: 100, 42bf6e62f2S猫头猫 }}> 43bf6e62f2S猫头猫 {routes.map(route => ( 44bf6e62f2S猫头猫 <Stack.Screen 45bf6e62f2S猫头猫 key={route.path} 46bf6e62f2S猫头猫 name={route.path} 474060c00aS猫头猫 component={route.component} 484060c00aS猫头猫 /> 49bf6e62f2S猫头猫 ))} 50bf6e62f2S猫头猫 </Stack.Navigator> 51bf6e62f2S猫头猫 524060c00aS猫头猫 <Panels /> 534060c00aS猫头猫 <Dialogs /> 54a33ab089S猫头猫 <ImageViewComponent /> 55ea6d708fS猫头猫 <Debug /> 567a8d024eS猫头猫 <PortalHost /> 57*b85f12f7S猫头猫 <ToastBaseComponent /> 58bf6e62f2S猫头猫 </NavigationContainer> 591c06c799S猫头猫 </SafeAreaProvider> 60bf6e62f2S猫头猫 </GestureHandlerRootView> 6172381fc8S猫头猫 </> 62bf6e62f2S猫头猫 ); 63bf6e62f2S猫头猫} 64