From ba2dc1211f7ead94aad865722c5d724301ac52e2 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Mon, 23 Jun 2025 10:18:59 +0800 Subject: [PATCH] first commit --- .gitignore | 40 + .vscode/settings.json | 7 + app.json | 43 + app/+not-found.tsx | 9 + app/_layout.tsx | 5 + app/background.tsx | 21 + app/header-button.tsx | 36 + app/index.tsx | 126 + app/new-detail.tsx | 22 + app/set-screen-dynamic.tsx | 26 + assets/fonts/SpaceMono-Regular.ttf | Bin 0 -> 93252 bytes assets/images/adaptive-icon.png | Bin 0 -> 17547 bytes assets/images/favicon.png | Bin 0 -> 1466 bytes assets/images/icon.png | Bin 0 -> 22380 bytes assets/images/logo-hipmi.png | Bin 0 -> 52370 bytes assets/images/main-background.png | Bin 0 -> 190812 bytes assets/images/partial-react-logo.png | Bin 0 -> 5075 bytes assets/images/react-logo.png | Bin 0 -> 6341 bytes assets/images/react-logo@2x.png | Bin 0 -> 14225 bytes assets/images/react-logo@3x.png | Bin 0 -> 21252 bytes assets/images/splash-icon.png | Bin 0 -> 17547 bytes bun.lock | 2079 ++++ components/Button/ButtonCustom.tsx | 46 + components/Button/buttonStyles.ts | 30 + components/TextInput/TextInputCustom.tsx | 100 + components/TextInput/textInputStyles.ts | 71 + constants/color-palet.ts | 41 + constants/styles.ts | 29 + eslint.config.js | 10 + package-lock.json | 12884 +++++++++++++++++++++ package.json | 50 + tsconfig.json | 17 + 32 files changed, 15692 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 app.json create mode 100644 app/+not-found.tsx create mode 100644 app/_layout.tsx create mode 100644 app/background.tsx create mode 100644 app/header-button.tsx create mode 100644 app/index.tsx create mode 100644 app/new-detail.tsx create mode 100644 app/set-screen-dynamic.tsx create mode 100755 assets/fonts/SpaceMono-Regular.ttf create mode 100644 assets/images/adaptive-icon.png create mode 100644 assets/images/favicon.png create mode 100644 assets/images/icon.png create mode 100644 assets/images/logo-hipmi.png create mode 100644 assets/images/main-background.png create mode 100644 assets/images/partial-react-logo.png create mode 100644 assets/images/react-logo.png create mode 100644 assets/images/react-logo@2x.png create mode 100644 assets/images/react-logo@3x.png create mode 100644 assets/images/splash-icon.png create mode 100644 bun.lock create mode 100644 components/Button/ButtonCustom.tsx create mode 100644 components/Button/buttonStyles.ts create mode 100644 components/TextInput/TextInputCustom.tsx create mode 100644 components/TextInput/textInputStyles.ts create mode 100644 constants/color-palet.ts create mode 100644 constants/styles.ts create mode 100644 eslint.config.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..17a524b --- /dev/null +++ b/.gitignore @@ -0,0 +1,40 @@ +# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files + +# dependencies +node_modules/ + +# Expo +.expo/ +dist/ +web-build/ +expo-env.d.ts + +# Native +.kotlin/ +*.orig.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision + +# Metro +.metro-health-check* + +# debug +npm-debug.* +yarn-debug.* +yarn-error.* + +# macOS +.DS_Store +*.pem + +# local env files +.env*.local + +# typescript +*.tsbuildinfo + +app-example +.qodo diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e2798e4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit", + "source.sortMembers": "explicit" + } +} diff --git a/app.json b/app.json new file mode 100644 index 0000000..7114530 --- /dev/null +++ b/app.json @@ -0,0 +1,43 @@ +{ + "expo": { + "name": "hipmi-mobile", + "slug": "hipmi-mobile", + "version": "1.0.0", + "orientation": "portrait", + "icon": "./assets/images/logo-hipmi.png", + "scheme": "hipmimobile", + "userInterfaceStyle": "automatic", + "newArchEnabled": true, + "ios": { + "supportsTablet": true, + "bundleIdentifier": "com.anonymous.hipmi-mobile" + }, + "android": { + "adaptiveIcon": { + "foregroundImage": "./assets/images/adaptive-icon.png", + "backgroundColor": "#ffffff" + }, + "edgeToEdgeEnabled": true + }, + "web": { + "bundler": "metro", + "output": "static", + "favicon": "./assets/images/favicon.png" + }, + "plugins": [ + "expo-router", + [ + "expo-splash-screen", + { + "image": "./assets/images/splash-icon.png", + "imageWidth": 200, + "resizeMode": "contain", + "backgroundColor": "#ffffff" + } + ] + ], + "experiments": { + "typedRoutes": true + } + } +} diff --git a/app/+not-found.tsx b/app/+not-found.tsx new file mode 100644 index 0000000..888960b --- /dev/null +++ b/app/+not-found.tsx @@ -0,0 +1,9 @@ +import { Text, View } from "react-native"; + +export default function NotFoundScreen() { + return ( + + Not Found + + ) +} \ No newline at end of file diff --git a/app/_layout.tsx b/app/_layout.tsx new file mode 100644 index 0000000..d2a8b0b --- /dev/null +++ b/app/_layout.tsx @@ -0,0 +1,5 @@ +import { Stack } from "expo-router"; + +export default function RootLayout() { + return ; +} diff --git a/app/background.tsx b/app/background.tsx new file mode 100644 index 0000000..2a42077 --- /dev/null +++ b/app/background.tsx @@ -0,0 +1,21 @@ +import { Text, View } from "react-native"; +import { useNavigation } from "expo-router"; +import { useEffect } from "react"; + +export default function Background() { + const navigation = useNavigation(); + + useEffect(() => { + navigation.setOptions({ + headerShown: true, + headerTitle: "Home", + + }); + }, [navigation]); + + return ( + + Background + + ); +} diff --git a/app/header-button.tsx b/app/header-button.tsx new file mode 100644 index 0000000..8e19d11 --- /dev/null +++ b/app/header-button.tsx @@ -0,0 +1,36 @@ +import { Stack } from "expo-router"; +import { Button, Text, Image } from "react-native"; +import { useState } from "react"; +import { styles } from "@/constants/styles"; + +function LogoTitle(props: { children?: React.ReactNode }) { + return ( + + ); +} + +export default function Home() { + const [count, setCount] = useState(0); + + return ( + <> + , + headerRight: () => ( +