diff --git a/code/app/base-app/babel.config.js b/code/app/base-app/babel.config.js deleted file mode 100644 index 7bf1b249..00000000 --- a/code/app/base-app/babel.config.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = function (api) { - api.cache(true); - return { - presets: [ - ["babel-preset-expo", { jsxImportSource: "nativewind" }], - "nativewind/babel", - ], - }; -}; \ No newline at end of file diff --git a/code/app/base-app/nativewind-env.d.ts b/code/app/base-app/nativewind-env.d.ts deleted file mode 100644 index c0d83807..00000000 --- a/code/app/base-app/nativewind-env.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// - -// NOTE: This file should not be edited and should be committed with your source code. It is generated by NativeWind. \ No newline at end of file diff --git a/code/app/base-app/src/app/(tabs)/_layout.tsx b/code/app/base-app/src/app/(tabs)/_layout.tsx deleted file mode 100644 index 5c59f244..00000000 --- a/code/app/base-app/src/app/(tabs)/_layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { Tabs, TabSlot } from 'expo-router/ui' // ✅ 从 expo-router/ui 导入 -import { CustomTabBar } from '@/components/CustomTabBar' - -export default function TabsLayout() { - return ( - - {/* 渲染当前激活的页面内容 */} - - - {/* 您的自定义 TabBar */} - - - ) -} diff --git a/code/app/base-app/src/app/(tabs)/app-center.tsx b/code/app/base-app/src/app/(tabs)/app-center.tsx deleted file mode 100644 index 1aa3b9d4..00000000 --- a/code/app/base-app/src/app/(tabs)/app-center.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { Ionicons } from '@expo/vector-icons' -import { router } from 'expo-router' -import { StyleSheet, Text, View } from 'react-native' -import { Button, ButtonIcon, ButtonText } from '@/components/ui/button' - -export default function Tab() { - const to404 = () => { - router.navigate('/abc') - } - - return ( - - - - ) -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - }, -}) diff --git a/code/app/base-app/src/app/(tabs)/chat.tsx b/code/app/base-app/src/app/(tabs)/chat.tsx deleted file mode 100644 index 01e195f0..00000000 --- a/code/app/base-app/src/app/(tabs)/chat.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { StyleSheet, Text, View } from 'react-native' - -export default function Tab() { - return ( - - Chat [Settings] - - ) -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - }, -}) diff --git a/code/app/base-app/src/app/(tabs)/dating.tsx b/code/app/base-app/src/app/(tabs)/dating.tsx deleted file mode 100644 index 27bf78b1..00000000 --- a/code/app/base-app/src/app/(tabs)/dating.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { StyleSheet, Text, View } from 'react-native' - -export default function Tab() { - return ( - - heart [Settings] - - ) -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - }, -}) diff --git a/code/app/base-app/src/app/(tabs)/finance.tsx b/code/app/base-app/src/app/(tabs)/finance.tsx deleted file mode 100644 index 60f2e48f..00000000 --- a/code/app/base-app/src/app/(tabs)/finance.tsx +++ /dev/null @@ -1,42 +0,0 @@ -// App.tsx -import React, { useEffect } from 'react' -import { Button, Text, View } from 'react-native' -import { useUserStore } from '@/store/userStore' - -export default function App() { - const { userInfo, token, setUserInfo, setToken, logout } = useUserStore() - - // 模拟 App 启动后读取状态 - useEffect(() => { - console.log('用户信息:', userInfo) - console.log('Token:', token) - }, [userInfo, token]) - - return ( - - - User Info: - {userInfo ? userInfo.username : '未登录'} - - - Token: - {token || '无'} - - -