dimanche 5 janvier 2020

React Native Submit Form Data with Navigation and Dealing with Managing Screens

Whats the best practice for dealing with forms where I would want to have multiple (of the same) forms being "saved" (maybe in a JSON format somewhere) before actually saving it to database or doing something with it.

The idea is user will have multiple images, and then each image will have its own screen with text input fields to apply the information they can save to describe the image. Then user will click on "next" and the screen will slide next with empty forms and next image. This will continue until the end of the array of images, then user will "complete" all information.

I'm assuming that I'll be using 1 component because the format is going to be the same, but how do I get it it'll be the same component with empty forms and where all the information is stored somewhere?

Aucun commentaire:

Enregistrer un commentaire