From 4835d51f357f5bb0331f0030ccaef7d26419cdcd Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Tue, 24 Jun 2025 10:45:42 +0800 Subject: [PATCH 01/64] resourcing tabs deskripsi: - coba tabs --- app/(application)/_layout.tsx | 28 ++++++++++ .../home/index.tsx} | 10 ++-- app/(application)/index.tsx | 28 ++++++++++ app/(application)/katalog/index.tsx | 9 +++ app/_layout.tsx | 12 +++- app/header-button.tsx | 36 ------------ app/index.tsx | 46 +++++++++++---- app/new-detail.tsx | 22 -------- app/register.tsx | 56 +++++++++++++++++++ app/set-screen-dynamic.tsx | 26 --------- app/verification.tsx | 17 ++---- bun.lock | 7 +++ components/_ShareComponent/ViewWrapper.tsx | 5 +- constants/global-styles.ts | 2 +- package.json | 1 + 15 files changed, 187 insertions(+), 118 deletions(-) create mode 100644 app/(application)/_layout.tsx rename app/{background.tsx => (application)/home/index.tsx} (69%) create mode 100644 app/(application)/index.tsx create mode 100644 app/(application)/katalog/index.tsx delete mode 100644 app/header-button.tsx delete mode 100644 app/new-detail.tsx create mode 100644 app/register.tsx delete mode 100644 app/set-screen-dynamic.tsx diff --git a/app/(application)/_layout.tsx b/app/(application)/_layout.tsx new file mode 100644 index 0000000..e750dc3 --- /dev/null +++ b/app/(application)/_layout.tsx @@ -0,0 +1,28 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ +import ViewWrapper from "@/components/_ShareComponent/ViewWrapper"; +import { Entypo } from "@expo/vector-icons"; +import { Tabs } from "expo-router"; + +export default function ApplicationLayout() { + return ( + <> + + + , + }} + /> + , + }} + /> + + + ); +} diff --git a/app/background.tsx b/app/(application)/home/index.tsx similarity index 69% rename from app/background.tsx rename to app/(application)/home/index.tsx index 2a42077..49d76d3 100644 --- a/app/background.tsx +++ b/app/(application)/home/index.tsx @@ -1,21 +1,19 @@ import { Text, View } from "react-native"; -import { useNavigation } from "expo-router"; import { useEffect } from "react"; +import { useNavigation } from "expo-router"; -export default function Background() { +export default function Home() { const navigation = useNavigation(); useEffect(() => { navigation.setOptions({ - headerShown: true, - headerTitle: "Home", - + headerShown: false, }); }, [navigation]); return ( - Background + Home ); } diff --git a/app/(application)/index.tsx b/app/(application)/index.tsx new file mode 100644 index 0000000..93c1f34 --- /dev/null +++ b/app/(application)/index.tsx @@ -0,0 +1,28 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ +import { ImageBackground, ScrollView, Text, View } from "react-native"; +import ViewWrapper from "@/components/_ShareComponent/ViewWrapper"; +import { globalStyles } from "@/constants/global-styles"; +import Spacing from "@/components/_ShareComponent/Spacing"; +import { SafeAreaView } from "react-native-safe-area-context"; + +export default function Application() { + + return ( + + + + {Array.from({ length: 20 }).map((_, index) => ( + + Application {index} + + + ))} + + + + ); +} diff --git a/app/(application)/katalog/index.tsx b/app/(application)/katalog/index.tsx new file mode 100644 index 0000000..5182a18 --- /dev/null +++ b/app/(application)/katalog/index.tsx @@ -0,0 +1,9 @@ +import { Text, View } from "react-native"; + +export default function Katalog() { + return ( + + Katalog + + ); +} \ No newline at end of file diff --git a/app/_layout.tsx b/app/_layout.tsx index d2a8b0b..d29d0ba 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,5 +1,15 @@ import { Stack } from "expo-router"; export default function RootLayout() { - return ; + return ( + + + + + + {/* + */} + + + ); } diff --git a/app/header-button.tsx b/app/header-button.tsx deleted file mode 100644 index 1654e34..0000000 --- a/app/header-button.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { globalStyles } from "@/constants/global-styles"; -import { Stack } from "expo-router"; -import { useState } from "react"; -import { Button, Image, Text } from "react-native"; - -function LogoTitle(props: { children?: React.ReactNode }) { - return ( - - ); -} - -export default function Home() { - const [count, setCount] = useState(0); - - return ( - <> - , - headerRight: () => ( -