From 4cfb92e232b8cbc82894ab59a7dcbaf1b1536dcd Mon Sep 17 00:00:00 2001 From: EthanShoeDev <13422990+EthanShoeDev@users.noreply.github.com> Date: Sun, 7 Sep 2025 23:34:02 -0400 Subject: [PATCH] polish --- app/index.tsx | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index 94b632d..6fef9c8 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -8,6 +8,8 @@ import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native' const { fieldContext, formContext } = createFormHookContexts() +// #region: UI Components + // https://tanstack.com/form/latest/docs/framework/react/quick-start function TextField( props: React.ComponentProps & { @@ -83,8 +85,9 @@ function SubmitButton(props: { ) } -// Allow us to bind components to the form to keep type safety but reduce production boilerplate -// Define this once to have a generator of consistent form instances throughout your app +// #endregion + +// https://tanstack.com/form/latest/docs/framework/react/quick-start const { useAppForm } = createFormHook({ fieldComponents: { TextField, @@ -134,28 +137,6 @@ export default function Index() { return ( - {/*