From b45959a0f4c4543b5d5186329771405000933860 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 9 Mar 2026 07:50:17 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84tabs=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(tabs)/_layout.tsx | 7 +++-- app/(tabs)/about.tsx | 5 ---- app/(tabs)/contacts.tsx | 3 ++ app/(tabs)/discover.tsx | 3 ++ app/(tabs)/index.tsx | 2 +- app/(tabs)/profile.tsx | 3 ++ features/home/screens/home-screen.tsx | 38 ------------------------ features/system/screens/modal-screen.tsx | 38 ------------------------ 8 files changed, 15 insertions(+), 84 deletions(-) delete mode 100644 app/(tabs)/about.tsx create mode 100644 app/(tabs)/contacts.tsx create mode 100644 app/(tabs)/discover.tsx create mode 100644 app/(tabs)/profile.tsx delete mode 100644 features/home/screens/home-screen.tsx delete mode 100644 features/system/screens/modal-screen.tsx diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index c993589..1746a83 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -1,10 +1,13 @@ import { Tabs } from 'expo-router'; +import Ionicons from "@expo/vector-icons/MaterialIcons" export default function TabLayout() { return ( - - + }} /> + }} /> + }} /> + }} /> ); } \ No newline at end of file diff --git a/app/(tabs)/about.tsx b/app/(tabs)/about.tsx deleted file mode 100644 index 2bf1212..0000000 --- a/app/(tabs)/about.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Text } from "react-native"; - -export default function AboutRoute() { - return About Route; -} \ No newline at end of file diff --git a/app/(tabs)/contacts.tsx b/app/(tabs)/contacts.tsx new file mode 100644 index 0000000..3753c7b --- /dev/null +++ b/app/(tabs)/contacts.tsx @@ -0,0 +1,3 @@ +export default function ContactsRoute() { + return <>; +} \ No newline at end of file diff --git a/app/(tabs)/discover.tsx b/app/(tabs)/discover.tsx new file mode 100644 index 0000000..3753c7b --- /dev/null +++ b/app/(tabs)/discover.tsx @@ -0,0 +1,3 @@ +export default function ContactsRoute() { + return <>; +} \ No newline at end of file diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 092bcfa..5b3e421 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -1,5 +1,5 @@ import { Text } from "react-native"; export default function IndexRoute() { - return Index Route; + return Chat Route; } \ No newline at end of file diff --git a/app/(tabs)/profile.tsx b/app/(tabs)/profile.tsx new file mode 100644 index 0000000..860aaa4 --- /dev/null +++ b/app/(tabs)/profile.tsx @@ -0,0 +1,3 @@ +export default function ProfileRoute() { + return <>; +} \ No newline at end of file diff --git a/features/home/screens/home-screen.tsx b/features/home/screens/home-screen.tsx deleted file mode 100644 index a240c5a..0000000 --- a/features/home/screens/home-screen.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { Link } from "expo-router"; -import { StyleSheet, Text, View } from "react-native"; - -export function HomeScreen() { - return ( - - lamp - OpenIM powered messaging workspace - - Open modal preview - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: "center", - alignItems: "center", - gap: 10, - padding: 24, - }, - title: { - fontSize: 32, - fontWeight: "700", - letterSpacing: 0.5, - }, - subtitle: { - fontSize: 15, - color: "#5c6169", - }, - link: { - marginTop: 8, - fontSize: 16, - fontWeight: "600", - }, -}); diff --git a/features/system/screens/modal-screen.tsx b/features/system/screens/modal-screen.tsx deleted file mode 100644 index 8c4143f..0000000 --- a/features/system/screens/modal-screen.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { Link } from "expo-router"; -import { StyleSheet, Text, View } from "react-native"; - -export function ModalScreen() { - return ( - - Modal Route - This screen is presented with modal behavior on native. - - Back to home - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - alignItems: "center", - justifyContent: "center", - padding: 20, - gap: 8, - }, - title: { - fontSize: 24, - fontWeight: "700", - }, - subtitle: { - fontSize: 14, - color: "#5c6169", - textAlign: "center", - }, - link: { - marginTop: 8, - fontSize: 16, - fontWeight: "600", - }, -});