From 59696b2cafdb120f7ce64305e40e95fe42eb7616 Mon Sep 17 00:00:00 2001 From: thschleicher Date: Thu, 30 Nov 2023 09:26:00 +0100 Subject: [PATCH] Cleanup and First Small Changes --- app/(tabs)/_layout.tsx | 55 ----------------- app/(tabs)/index.tsx | 31 ---------- app/(tabs)/two.tsx | 31 ---------- app/+html.tsx | 46 -------------- app/[...missing].tsx | 40 ------------ app/_layout.tsx | 64 +++----------------- app/budget.tsx | 5 ++ app/index.tsx | 19 ++++++ app/modal.tsx | 35 ----------- app/stats.tsx | 5 ++ assets/images/splash-template.png | Bin 0 -> 47346 bytes assets/images/splash.png | Bin 47346 -> 265562 bytes components/EditScreenInfo.tsx | 77 ------------------------ components/ExternalLink.tsx | 28 --------- components/StyledText.tsx | 5 -- components/Themed.tsx | 44 -------------- components/__tests__/StyledText-test.js | 10 --- constants/Colors.ts | 19 ------ 18 files changed, 39 insertions(+), 475 deletions(-) delete mode 100644 app/(tabs)/_layout.tsx delete mode 100644 app/(tabs)/index.tsx delete mode 100644 app/(tabs)/two.tsx delete mode 100644 app/+html.tsx delete mode 100644 app/[...missing].tsx create mode 100644 app/budget.tsx create mode 100644 app/index.tsx delete mode 100644 app/modal.tsx create mode 100644 app/stats.tsx create mode 100644 assets/images/splash-template.png delete mode 100644 components/EditScreenInfo.tsx delete mode 100644 components/ExternalLink.tsx delete mode 100644 components/StyledText.tsx delete mode 100644 components/Themed.tsx delete mode 100644 components/__tests__/StyledText-test.js delete mode 100644 constants/Colors.ts diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx deleted file mode 100644 index 8c47578..0000000 --- a/app/(tabs)/_layout.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import FontAwesome from '@expo/vector-icons/FontAwesome'; -import { Link, Tabs } from 'expo-router'; -import { Pressable, useColorScheme } from 'react-native'; - -import Colors from '../../constants/Colors'; - -/** - * You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ - */ -function TabBarIcon(props: { - name: React.ComponentProps['name']; - color: string; -}) { - return ; -} - -export default function TabLayout() { - const colorScheme = useColorScheme(); - - return ( - - , - headerRight: () => ( - - - {({ pressed }) => ( - - )} - - - ), - }} - /> - , - }} - /> - - ); -} diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx deleted file mode 100644 index ea48da0..0000000 --- a/app/(tabs)/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { StyleSheet } from 'react-native'; - -import EditScreenInfo from '../../components/EditScreenInfo'; -import { Text, View } from '../../components/Themed'; - -export default function TabOneScreen() { - return ( - - Tab One - - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - alignItems: 'center', - justifyContent: 'center', - }, - title: { - fontSize: 20, - fontWeight: 'bold', - }, - separator: { - marginVertical: 30, - height: 1, - width: '80%', - }, -}); diff --git a/app/(tabs)/two.tsx b/app/(tabs)/two.tsx deleted file mode 100644 index 5ecef25..0000000 --- a/app/(tabs)/two.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { StyleSheet } from 'react-native'; - -import EditScreenInfo from '../../components/EditScreenInfo'; -import { Text, View } from '../../components/Themed'; - -export default function TabTwoScreen() { - return ( - - Tab Two - - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - alignItems: 'center', - justifyContent: 'center', - }, - title: { - fontSize: 20, - fontWeight: 'bold', - }, - separator: { - marginVertical: 30, - height: 1, - width: '80%', - }, -}); diff --git a/app/+html.tsx b/app/+html.tsx deleted file mode 100644 index 25524d7..0000000 --- a/app/+html.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { ScrollViewStyleReset } from 'expo-router/html'; - -// This file is web-only and used to configure the root HTML for every -// web page during static rendering. -// The contents of this function only run in Node.js environments and -// do not have access to the DOM or browser APIs. -export default function Root({ children }: { children: React.ReactNode }) { - return ( - - - - - - {/* - This viewport disables scaling which makes the mobile website act more like a native app. - However this does reduce built-in accessibility. If you want to enable scaling, use this instead: - - */} - - {/* - Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. - However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. - */} - - - {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */} -