From 3ddc8236a79aba22f09c4edd388a9625f4223d0f Mon Sep 17 00:00:00 2001 From: EthanShoeDev <13422990+EthanShoeDev@users.noreply.github.com> Date: Mon, 22 Sep 2025 17:40:48 -0400 Subject: [PATCH] rm test code --- apps/mobile/src/app/(test)/_layout.tsx | 42 ------ apps/mobile/src/app/(test)/index.tsx | 5 - .../app/(test)/toolbar-example/_layout.tsx | 5 - .../src/app/(test)/toolbar-example/index.tsx | 131 ------------------ 4 files changed, 183 deletions(-) delete mode 100644 apps/mobile/src/app/(test)/_layout.tsx delete mode 100644 apps/mobile/src/app/(test)/index.tsx delete mode 100644 apps/mobile/src/app/(test)/toolbar-example/_layout.tsx delete mode 100644 apps/mobile/src/app/(test)/toolbar-example/index.tsx diff --git a/apps/mobile/src/app/(test)/_layout.tsx b/apps/mobile/src/app/(test)/_layout.tsx deleted file mode 100644 index 46fcf24..0000000 --- a/apps/mobile/src/app/(test)/_layout.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { Icon, Label, NativeTabs } from 'expo-router/unstable-native-tabs'; -import React from 'react'; -import { useTheme } from '@/lib/theme'; -// import { Stack } from 'expo-router'; - -// export default function Layout() { -// return ; -// } - -export default function TabsLayout() { - const theme = useTheme(); - - return ( - - - - - - - ); -} diff --git a/apps/mobile/src/app/(test)/index.tsx b/apps/mobile/src/app/(test)/index.tsx deleted file mode 100644 index cd973cc..0000000 --- a/apps/mobile/src/app/(test)/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Redirect } from 'expo-router'; - -export default function RootRedirect() { - return ; -} diff --git a/apps/mobile/src/app/(test)/toolbar-example/_layout.tsx b/apps/mobile/src/app/(test)/toolbar-example/_layout.tsx deleted file mode 100644 index 6459bc8..0000000 --- a/apps/mobile/src/app/(test)/toolbar-example/_layout.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { Stack } from 'expo-router'; - -export default function Layout() { - return ; -} diff --git a/apps/mobile/src/app/(test)/toolbar-example/index.tsx b/apps/mobile/src/app/(test)/toolbar-example/index.tsx deleted file mode 100644 index 71598ce..0000000 --- a/apps/mobile/src/app/(test)/toolbar-example/index.tsx +++ /dev/null @@ -1,131 +0,0 @@ -import React, { useCallback, useState } from 'react'; -import { - Text, - View, - StyleSheet, - type TextInputProps, - TextInput, -} from 'react-native'; -import { - KeyboardAvoidingView, - KeyboardToolbar, -} from 'react-native-keyboard-controller'; - -export default function ToolbarExample() { - return ( - <> - - - - - - - - - - ); -} - -type CustomTextInputProps = { - title?: string; -} & TextInputProps; - -const TextInputAndLabel = (props: CustomTextInputProps) => { - const { title, ...rest } = props; - const [isFocused, setFocused] = useState(false); - - const onFocus = useCallback>( - (e) => { - setFocused(true); - props.onFocus?.(e); - }, - [props], - ); - - const onBlur = useCallback>( - (e) => { - setFocused(false); - props.onBlur?.(e); - }, - [props], - ); - - return ( - <> - {!!title && {title}} - - - ); -}; - -const textInputStyles = StyleSheet.create({ - title: { - marginBottom: 6, - marginLeft: 3, - color: 'black', - fontSize: 16, - }, - container: { - width: '100%', - minHeight: 50, - maxHeight: 200, - borderColor: 'black', - borderWidth: 2, - marginRight: 160, - borderRadius: 10, - color: 'black', - paddingHorizontal: 12, - }, - disabled: { - opacity: 0.5, - }, - focused: { - borderColor: '#20AAFF', - }, -});