Multi-screen form architecture in React Native with Expo Router #1589
Unanswered
grantackerman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a React Native app with Expo Router that needs a multi-screen/step form flow (name → date of birth → address → review screen). I'm trying to determine the best approach using TanStack Form, but couldn't find guidance in the docs for forms spanning multiple screens/routes/steps. I think these Form Groups are probably what I'd want, but until they're available, I'd like to understand what the best practice is for implementing multi-screen forms.
Context:
Approaches I'm considering:
useAppForm
.onSubmit
for validationwithForm
for each section (name, date-of-birth, address, review)onSubmit
for validation of each screenuseAppForm
in _layoutwithForm
along with the form instance from React Context or ZustandQuestions:
Any guidance on best practices would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions