samedi 29 juillet 2023

Feature based approach project structure for react native app [closed]

I have some questions concerning feature based approach for structuring react native projects.

We are planning to create a car services app. The app consists of 5 tabs:

Home ,Catalog, Services, Chat and Profile

In Catalog users Can see cars available for sell.

In Services users Can Book car services there are many.

In Home screen we show some cars for sell and some services, if a service or a car is clicked then we go to its details screen.

My questions are:

Should we create a screens folder ?

Is Home a feature ? Because it contains in it some of the other features like seeing cars from Catalog tab and Services

Should we consider every service of the services a feature ?

Should we treat tabs as features or screens ? Or anything else ? Any ideas.

At the moment i'm thinking maybe every tab is a feature, but like that we are going back to types project structure approach where we have screens and all component belonging to that screen arent we ? If we divide out project to only features. How could we know which code or components belongs to which screens. I've seen in many articles that features have screens folder in it but i'm not able to imagine in our case.

Aucun commentaire:

Enregistrer un commentaire