This commit is contained in:
Junhui Chen 2025-08-07 01:36:33 +08:00
parent 12c3eb0901
commit ed97527e2b

View File

@ -8,7 +8,6 @@ import { useColorScheme } from '@/hooks/useColorScheme';
import { prefetchChats } from '@/lib/prefetch'; import { prefetchChats } from '@/lib/prefetch';
import { fetchApi } from '@/lib/server-api-util'; import { fetchApi } from '@/lib/server-api-util';
import { getWebSocketManager, WebSocketStatus } from '@/lib/websocket-util'; import { getWebSocketManager, WebSocketStatus } from '@/lib/websocket-util';
import { TransitionPresets } from '@react-navigation/bottom-tabs';
import * as Notifications from 'expo-notifications'; import * as Notifications from 'expo-notifications';
import { Tabs } from 'expo-router'; import { Tabs } from 'expo-router';
import * as SecureStore from 'expo-secure-store'; import * as SecureStore from 'expo-secure-store';
@ -260,35 +259,35 @@ export default function TabLayout() {
{/* ask页面 */} {/* ask页面 */}
<Tabs.Screen <Tabs.Screen
name="ask" name="ask"
options={{ // options={{
title: 'ask', // title: 'ask',
tabBarButton: () => null, // 隐藏底部标签栏 // tabBarButton: () => null, // 隐藏底部标签栏
headerShown: false, // 隐藏导航栏 // headerShown: false, // 隐藏导航栏
tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示 // tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示
...TransitionPresets.ShiftTransition, // ...TransitionPresets.ShiftTransition,
}} // }}
/> />
{/* memo list */} {/* memo list */}
<Tabs.Screen <Tabs.Screen
name="memo-list" name="memo-list"
options={{ // options={{
title: 'memo-list', // title: 'memo-list',
tabBarButton: () => null, // 隐藏底部标签栏 // tabBarButton: () => null, // 隐藏底部标签栏
headerShown: false, // 隐藏导航栏 // headerShown: false, // 隐藏导航栏
tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示 // tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示
...TransitionPresets.ShiftTransition, // ...TransitionPresets.ShiftTransition,
}} // }}
/> />
{/* owner */} {/* owner */}
<Tabs.Screen <Tabs.Screen
name="owner" name="owner"
options={{ // options={{
title: 'owner', // title: 'owner',
tabBarButton: () => null, // 隐藏底部标签栏 // tabBarButton: () => null, // 隐藏底部标签栏
headerShown: false, // 隐藏导航栏 // headerShown: false, // 隐藏导航栏
tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示 // tabBarStyle: { display: 'none' }, // 确保在标签栏中不显示
...TransitionPresets.ShiftTransition, // ...TransitionPresets.ShiftTransition,
}} // }}
/> />
{/* 排行榜 */} {/* 排行榜 */}
<Tabs.Screen <Tabs.Screen