From c751e28fce23c9860535f1a91d9cc4dea94d1bc4 Mon Sep 17 00:00:00 2001 From: BinarySandia04 Date: Tue, 21 Apr 2026 16:48:51 +0200 Subject: [PATCH] First commit --- README.md | 51 +------ .gitignore => apk/.gitignore | 0 {.vscode => apk/.vscode}/extensions.json | 0 {.vscode => apk/.vscode}/settings.json | 0 apk/README.md | 50 +++++++ app.json => apk/app.json | 0 apk/app/_layout.tsx | 28 ++++ apk/app/add.tsx | 80 +++++++++++ apk/app/index.tsx | 22 +++ .../images/android-icon-background.png | Bin .../images/android-icon-foreground.png | Bin .../images/android-icon-monochrome.png | Bin {assets => apk/assets}/images/favicon.png | Bin {assets => apk/assets}/images/icon.png | Bin .../assets}/images/partial-react-logo.png | Bin {assets => apk/assets}/images/react-logo.png | Bin .../assets}/images/react-logo@2x.png | Bin .../assets}/images/react-logo@3x.png | Bin {assets => apk/assets}/images/splash-icon.png | Bin apk/components/birthdate-item.tsx | 38 ++++++ apk/components/birthdate-list.tsx | 127 ++++++++++++++++++ apk/components/scroll-view.tsx | 44 ++++++ {constants => apk/constants}/theme.ts | 0 eslint.config.js => apk/eslint.config.js | 0 {hooks => apk/hooks}/use-color-scheme.ts | 0 {hooks => apk/hooks}/use-color-scheme.web.ts | 0 {hooks => apk/hooks}/use-theme-color.ts | 0 package-lock.json => apk/package-lock.json | 24 ++++ package.json => apk/package.json | 9 +- {scripts => apk/scripts}/reset-project.js | 0 tsconfig.json => apk/tsconfig.json | 0 app/(tabs)/_layout.tsx | 35 ----- app/(tabs)/explore.tsx | 112 --------------- app/(tabs)/index.tsx | 98 -------------- app/_layout.tsx | 24 ---- app/modal.tsx | 29 ---- components/external-link.tsx | 25 ---- components/haptic-tab.tsx | 18 --- components/hello-wave.tsx | 19 --- components/parallax-scroll-view.tsx | 79 ----------- components/themed-text.tsx | 60 --------- components/themed-view.tsx | 14 -- components/ui/collapsible.tsx | 45 ------- components/ui/icon-symbol.ios.tsx | 32 ----- components/ui/icon-symbol.tsx | 41 ------ 45 files changed, 420 insertions(+), 684 deletions(-) rename .gitignore => apk/.gitignore (100%) rename {.vscode => apk/.vscode}/extensions.json (100%) rename {.vscode => apk/.vscode}/settings.json (100%) create mode 100644 apk/README.md rename app.json => apk/app.json (100%) create mode 100644 apk/app/_layout.tsx create mode 100644 apk/app/add.tsx create mode 100644 apk/app/index.tsx rename {assets => apk/assets}/images/android-icon-background.png (100%) rename {assets => apk/assets}/images/android-icon-foreground.png (100%) rename {assets => apk/assets}/images/android-icon-monochrome.png (100%) rename {assets => apk/assets}/images/favicon.png (100%) rename {assets => apk/assets}/images/icon.png (100%) rename {assets => apk/assets}/images/partial-react-logo.png (100%) rename {assets => apk/assets}/images/react-logo.png (100%) rename {assets => apk/assets}/images/react-logo@2x.png (100%) rename {assets => apk/assets}/images/react-logo@3x.png (100%) rename {assets => apk/assets}/images/splash-icon.png (100%) create mode 100644 apk/components/birthdate-item.tsx create mode 100644 apk/components/birthdate-list.tsx create mode 100644 apk/components/scroll-view.tsx rename {constants => apk/constants}/theme.ts (100%) rename eslint.config.js => apk/eslint.config.js (100%) rename {hooks => apk/hooks}/use-color-scheme.ts (100%) rename {hooks => apk/hooks}/use-color-scheme.web.ts (100%) rename {hooks => apk/hooks}/use-theme-color.ts (100%) rename package-lock.json => apk/package-lock.json (99%) rename package.json => apk/package.json (86%) rename {scripts => apk/scripts}/reset-project.js (100%) rename tsconfig.json => apk/tsconfig.json (100%) delete mode 100644 app/(tabs)/_layout.tsx delete mode 100644 app/(tabs)/explore.tsx delete mode 100644 app/(tabs)/index.tsx delete mode 100644 app/_layout.tsx delete mode 100644 app/modal.tsx delete mode 100644 components/external-link.tsx delete mode 100644 components/haptic-tab.tsx delete mode 100644 components/hello-wave.tsx delete mode 100644 components/parallax-scroll-view.tsx delete mode 100644 components/themed-text.tsx delete mode 100644 components/themed-view.tsx delete mode 100644 components/ui/collapsible.tsx delete mode 100644 components/ui/icon-symbol.ios.tsx delete mode 100644 components/ui/icon-symbol.tsx diff --git a/README.md b/README.md index 48dd63f..42d2b49 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,3 @@ -# Welcome to your Expo app 👋 +# Birthday app -This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app). - -## Get started - -1. Install dependencies - - ```bash - npm install - ``` - -2. Start the app - - ```bash - npx expo start - ``` - -In the output, you'll find options to open the app in a - -- [development build](https://docs.expo.dev/develop/development-builds/introduction/) -- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/) -- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/) -- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo - -You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction). - -## Get a fresh project - -When you're ready, run: - -```bash -npm run reset-project -``` - -This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing. - -## Learn more - -To learn more about developing your project with Expo, look at the following resources: - -- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides). -- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web. - -## Join the community - -Join our community of developers creating universal apps. - -- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute. -- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions. +A mobile app that can save and alert of the birthdays of people \ No newline at end of file diff --git a/.gitignore b/apk/.gitignore similarity index 100% rename from .gitignore rename to apk/.gitignore diff --git a/.vscode/extensions.json b/apk/.vscode/extensions.json similarity index 100% rename from .vscode/extensions.json rename to apk/.vscode/extensions.json diff --git a/.vscode/settings.json b/apk/.vscode/settings.json similarity index 100% rename from .vscode/settings.json rename to apk/.vscode/settings.json diff --git a/apk/README.md b/apk/README.md new file mode 100644 index 0000000..48dd63f --- /dev/null +++ b/apk/README.md @@ -0,0 +1,50 @@ +# Welcome to your Expo app 👋 + +This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app). + +## Get started + +1. Install dependencies + + ```bash + npm install + ``` + +2. Start the app + + ```bash + npx expo start + ``` + +In the output, you'll find options to open the app in a + +- [development build](https://docs.expo.dev/develop/development-builds/introduction/) +- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/) +- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/) +- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo + +You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction). + +## Get a fresh project + +When you're ready, run: + +```bash +npm run reset-project +``` + +This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing. + +## Learn more + +To learn more about developing your project with Expo, look at the following resources: + +- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides). +- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web. + +## Join the community + +Join our community of developers creating universal apps. + +- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute. +- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions. diff --git a/app.json b/apk/app.json similarity index 100% rename from app.json rename to apk/app.json diff --git a/apk/app/_layout.tsx b/apk/app/_layout.tsx new file mode 100644 index 0000000..676e7e5 --- /dev/null +++ b/apk/app/_layout.tsx @@ -0,0 +1,28 @@ +import { + DarkTheme, + DefaultTheme, + ThemeProvider, +} from "@react-navigation/native"; +import { Stack } from "expo-router"; +import { StatusBar } from "expo-status-bar"; +import "react-native-reanimated"; + +import { useColorScheme } from "@/hooks/use-color-scheme"; + +export const unstable_settings = { + anchor: "(tabs)", +}; + +export default function RootLayout() { + const colorScheme = useColorScheme(); + + return ( + + + + + + + + ); +} diff --git a/apk/app/add.tsx b/apk/app/add.tsx new file mode 100644 index 0000000..fc1077e --- /dev/null +++ b/apk/app/add.tsx @@ -0,0 +1,80 @@ +import DateTimePicker from "@react-native-community/datetimepicker"; +import { useRouter } from "expo-router"; +import React, { useState } from "react"; +import { + Button, + Platform, + StyleSheet, + Text, + TextInput, + View, +} from "react-native"; + +export default function SimpleForm() { + const router = useRouter(); + const [name, setName] = useState(""); + const [date, setDate] = useState(new Date()); + const [showPicker, setShowPicker] = useState(false); + + const onChangeDate = (event, selectedDate) => { + setShowPicker(Platform.OS === "ios"); + if (selectedDate) { + setDate(selectedDate); + } + }; + + const handleSubmit = () => { + alert(`Name: ${name}\nDate: ${date.toDateString()}`); + router.push("/"); + }; + + return ( + + Name: + + + Date: +